Benoit Giannangeli
Benoit Giannangeli
Right now we continue parsing/codegen after reporting errors and almost always end up crashing buzz. Go over each error reporting and see how it must be handled: either stopping everything...
`MyObj{}.bound is Function() > bool` -> `MyObj{}.bound is Function(MyObj) > bool`
```buzz num hello = 42; num bonjour = 42; | -> should be the same constant ``` String are not concerned since they are interned.
- [ ] `string.utf8Len(str string) > num` - [ ] `string.codepoint(num index) > str`
When exported, a function should capture global it uses. Right now we juste take the whole script globals for the ride. This would not be needed if we do https://github.com/buzz-language/buzz/issues/215
Right now they are functions so we can't do: ```buzz fun hello() > bool { willFail() catch { | here we return from this catch clause instead of returning from...
Special method that will be called when the object is collected: ```buzz object File { | ... fun collect() { this.close(); } } ```
Be able to export something when declaring it like so: ```buzz export num exportMe = 42; ```