3 ms·
How about Crystal, then? It's largely Ruby syntax with most of it's OOP model, minus some of the metaprogramming. But it's statically typed with a good type inf
by goatlover 10y ago
How about Crystal, then? It's largely Ruby syntax with most of it's OOP model, minus some of the metaprogramming. But it's statically typed with a good type inference system, and it's compiled.
That way, you get the expressiveness of Ruby (mostly) with the benefits of static compilation. It also has macros to make up for some of the missing metaprogramming.
- danappelxx 10y agoBut Crystal doesn't run on BEAM, which (I assume!) is something OP was looking for.
- goatlover 10y agoRight, but my post was in response to the one above about how we don't need another dynamic language because a statically typed language like Go is so much better at catching errors. Even though you have to write more code while being restricted in what can be expressed. Thus, Crystal makes sense, best of both worlds, and what not. Of course if you're looking for functional on Beam, then neither Go or Crystal are good comparisons.
- devmunchies 10y agoI've been building an app on crystal and really enjoy it but have noticed some of the growing pains as it ramps up to 1.0. Its great but may not quite be ready for production unless you don't mind fixing the occasional breaking changes. Its supposed to hit 1.0 this year.
- lobster_johnson 10y agoYes, Crystal's type inference looks really promising. I hope it will gain enough momentum.