buzz-language / buzz

👨‍🚀 buzz, A small/lightweight statically typed scripting language
https://buzz-lang.dev
MIT License
1.2k stars 34 forks source link

Function() > str? is either an optional function type or a function type returning str? #60

Closed giann closed 1 year ago

giann commented 2 years ago

Allow (Function() > str)? to distinguish the two cases.

giann commented 1 year ago

Function() > str? vs Function() > str !> void?

Works because void can't be optional and we don't allow optional error types.