<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Correct, it is not ternary, just a slip of my mind :)<div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div class="" style="margin: 0px; line-height: normal; font-family: Monaco;"><span class="" style="font-variant-ligatures: no-common-ligatures;">let</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> age = </span><span class="" style="font-variant-ligatures: no-common-ligatures;">try</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><span class="" style="font-variant-ligatures: no-common-ligatures;">dictionary</span><span class="" style="font-variant-ligatures: no-common-ligatures;">[</span><span class="" style="font-variant-ligatures: no-common-ligatures;">"age"</span><span class="" style="font-variant-ligatures: no-common-ligatures;">].</span><span class="" style="font-variant-ligatures: no-common-ligatures;">flatMap</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> { elem </span><span class="" style="font-variant-ligatures: no-common-ligatures;">in</span></div><div class="" style="margin: 0px; line-height: normal; font-family: Monaco;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><span class="" style="font-variant-ligatures: no-common-ligatures;">try</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> elem </span><span class="" style="font-variant-ligatures: no-common-ligatures;">as</span><span class="" style="font-variant-ligatures: no-common-ligatures;">? </span><span class="" style="font-variant-ligatures: no-common-ligatures;">Int</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> ?? { </span><span class="" style="font-variant-ligatures: no-common-ligatures;">throw</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><span class="" style="font-variant-ligatures: no-common-ligatures;">Error</span><span class="" style="font-variant-ligatures: no-common-ligatures;">() }()</span></div><p class="" style="margin: 0px; line-height: normal;"></p><div class="" style="margin: 0px; line-height: normal; font-family: Monaco;"><span class="" style="font-variant-ligatures: no-common-ligatures;">}</span></div></blockquote><div class=""><br class=""></div>I didn’t know this workaround worked. Cool! Can somebody from the core team tell us if it not supporting throw directly is a bug or an intended feature?</div></body></html>