Re:New C# to Javascript compiler released
by erik-kallen on Monday September 03, 2012 @10:17AM
(#4470430)
That's right, it doesn't get horrific until you use goto or yield (which don't exist in Javascript so they have to be emulated).
[ Parent
| on HN ]
Re:New C# to Javascript compiler released
by TazeTSchnitzel on Monday September 03, 2012 @11:02AM
(#4470587)
Some browsers, and ES Harmony, have yield. You could add a compiler switch to use native support, although only Firefox seems to support this just now.
Curious to see how you managed the emulation - splitting up a function? Web workers? :)
Re:New C# to Javascript compiler released
by erik-kallen on Monday September 03, 2012 @11:06AM
(#4470605)
for (;;), continue and switch.