buzz-language / buzz

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

Use f64 and i64 representation for numbers #65

Closed giann closed 2 years ago

giann commented 2 years ago

Right now numbers are only f64s. We need ObjNumber to either have a f64 or i64 representation while still letting the language be agnostic of it. This should mostly be the job of the VM since we don't really care about number representation until runtime.