The wasm implementation should be an implementation detail for compatibility with the eventual switch to a pure java implementation.
Currently the front facing apis are all classes with embedded wasm fields, which is annoying.
Solutions:
- Replace the public-facing api classes with sealed interfaces
- Add a factory class that provides implementations of these apis
The sealedness may be relaxed in the future once the api structure is more finalized.
The wasm implementation should be an implementation detail for compatibility with the eventual switch to a pure java implementation.
Currently the front facing apis are all classes with embedded wasm fields, which is annoying.
Solutions:
- Replace the public-facing api classes with sealed interfaces
- Add a factory class that provides implementations of these apis
The sealedness may be relaxed in the future once the api structure is more finalized.