top | item 31160860

(no title)

andrewzah | 3 years ago

There essentially already is a statically typed ruby: Crystal.

https://en.wikipedia.org/wiki/Crystal_(programming_language)

discuss

order

chrisseaton|3 years ago

Crystal has a look-alike syntax to Ruby. But the semantics (the important bit) aren't even remotely the same.

munificent|3 years ago

I don't know if it's fair to just declare that semantics are the important bit.

I suspect that for many users, much of what they like about Ruby is the syntax and core library, and to the degree that Crystal follows that, it will provide much of the same delight that Ruby does.

andrewzah|3 years ago

What semantics is crystal lacking? Obviously it's not a 1:1 replacement as the ecosystem is different, gem management (shards) is different, etc. Crystal also has union types and concurrency.

For people who want a syntax like ruby + performance/concurrency, but are willing to deal with a different ecosystem and having to do more stuff by hand, Crystal is a nice choice.