3 ms·
Ruby has static type system if I ever want to use it.
by vinceguidry 2y ago
Ruby has static type system if I ever want to use it.
- johnisgood 2y agoCrystal has static type-checking though. It is built into the language, unlike Ruby. Ruby is a dynamically typed language unlike Crystal. What am I misunderstanding here?
- vinceguidry 2y agoRuby's static type checker is built into the language, since 3.0. https://github.com/ruby/rbs https://github.com/ruby/rbs You can use others if you like. I have used Crystal before, pretty quickly realized that it was never going to catch up with Ruby and the compile step isn't really all that much of an advantage. The few scripts that I want speed for, I just use mruby. Embed Ruby in C, runs super fast. Don't get all the cool Ruby libs or runtime reflection. But a way better tradeoff. https://mruby.org/ https://mruby.org/
- johnisgood 2y agoOh, thank you!