Elias Sjögreen
Elias Sjögreen
The language should be extendable using "compiler tips" which are essentially macros, or simply put: compiler tips. These tips would be modularly implemented using an rust interface of some sort,...
Proposal to add inline functions using the `inline` keyword: ```rust export inline fn test_inline(a: i32): u32 { return a as u32 } ``` This would most likely be implement by...
A simple formatter and linter, like [clippy](https://github.com/rust-lang/rust-clippy) using the whistle lexer, parser and AST would be nice to have. In my opinion it should be opinionated, and be able to...
Will require some standardized syntax for imports and also #18.
Probably using toml, or perhaps as a part of the entry file of a Whistle program?
This is an quite old idea but it would essentially allow for a function to be called in multiple different stages before finally executing: ```rust fn bake_a_cake(first: str)(second: i32)(third: bool):...
Conditional parameters, while only syntax sugar would be a cool way of doing different things when the input of the function is different. I am undecided on wheter this is...
Optionally integrating [wasm-opt](https://github.com/WebAssembly/binaryen#wasm-opt) would allow us to create even smaller and faster code, without having to write our own optimizer.
Make this module implement an API resembling the [CompressionStream](https://developer.mozilla.org/en-US/docs/Web/API/CompressionStream) and [DecompressionStream](https://developer.mozilla.org/en-US/docs/Web/API/DecompressionStream) APIs. Possibly even polyfill the global ones, but that is up for debate.