3 ms·
if-else is basically the equivalent of syntax sugar, and it was controversial for a while whether it should be included. WASM's 'loop' isn't really that high l
by kevingadd 3y ago
if-else is basically the equivalent of syntax sugar, and it was controversial for a while whether it should be included.
WASM's 'loop' isn't really that high level, it's a backwards branch target with no built in bells or whistles. It's less powerful than 'while' in C.
- eru 3y agoYes. If you want to argue that WASM is higher level than 'real' assembly, I would point towards its ability to call functions more than its slightly weird jumps.