Ability to break anything

Java lets you break anything:

foo: if (true) {
  break foo;

This is nice for doing something like wasm2kotlin, but currently the workaround is to use run blocks. Run blocks are less nice altho they’re a trivial workaround. Then again wasm2kotlin is all about trivial workarounds (wasm2java was a no-go because the wasm2c test runner assumed different files could see eachother, which isn’t really a thing with java. kotlin has some minor issues for wasm2kotlin, but it’s not too bad tbh.)

Well, that wasn’t gonna work anyway as you can’t continue across run blocks.


do {} while(false) it is.

1 Like