buzz
buzz copied to clipboard
👨🚀 buzz, A small/lightweight statically typed scripting language
LSP https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/
```buzz fun iCanFail() > !num { | ... } ```
```buzz object A { const num assignedOnce; } ```
When less than 255, `u8`, then `u16`, etc.
Zig-like `defer` keyword that will execute an expression just before exiting the current function. ```buzz fun main() > void { File file = File.open("hello", mode: FileMode.read); defer file.close(); |... }...
```buzz object A { fun toString() > str -> "hello"; } print("{A{}}"); | -> "hello"; ```
```buzz [num] numbers = []; {str, str} map = {}; fun count([str] list) > num -> list.len(); count([]) == 0; ```