3 ms·
Is it backwards compatible with Ruby?
by aantix 8y ago
Is it backwards compatible with Ruby?
- arthurcolle 8y agoNo but the syntax is almost identical which makes it reality easy to pick up for small use cases, at least last time I looked at it
- arthurcolle 8y ago*really
- runjake 8y agoTo jump onto the other reply. No, it's not and while Crystal has syntax similar to Ruby, it is different enough that you cannot approach it like Ruby. It looks like a duck, but it does not quack like a duck. This is not a diss. Crystal is good.
- yxhuvud 8y agoNo. And it varies wildly - some Ruby files may run with just a couple characters (or even none) being different, and other may require a total rewrite.