buzz-language / buzz

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

Static property values don't need to be constant #155

Closed giann closed 9 months ago

giann commented 11 months ago

Static property values don't need to be constant

giann commented 9 months ago

This is the case because expression evaluated in the global scope have to be constants. This is required because things can be out of order in the global scope (use of something before its declaration).