Benoit Giannangeli
Benoit Giannangeli
Something like php [`stdclass`](https://www.php.net/manual/en/language.types.object.php#language.types.object.casting) and zig [anonymous struct literals](https://ziglang.org/documentation/master/#Anonymous-Struct-Literals). Implies that we can subscript objects and possibly cast map into anonymous objects. ```buzz obj myObject = { hello = "world"...
Implement coroutines ```buzz import "lib/std"; fun main() > void { | Async call, creates a new routine (new VM instance), count is not yet executed rti counter = async count(10);...
Add syntax highlighting to code shown by error messages
We can: - keep them: class bring a lot of complexity for questionnable benefits - remove them: but we would have no way to hold things of different types together...
A simple form of compile time execution: - [X] `if/else`: when conditions are constants, gen only valid branch - [X] `foreach`: when iterable is constant and empty, don't generate loop...
- [X] Pattern new type: `pat pattern = _^hello$_;` - [ ] Allow pattern initialization with a string `pat pattern = "^with a string$";` `pat` methods are: - [X] `pattern.match(str...
Iterator interface anything can implement to be used with a `foreach`
Would allow an object instance to be constant expression.