Hacker News new | ask | show | jobs
by BasedAnon 995 days ago
Wouldn't it be easier to have it transpile to Crystal? The languages are already extremely similar
1 comments

Crystal's syntax is somewhat similar to Ruby's, but its actual semantics (and type system) are fundamentally different.

In particular, `method_missing` and other fundamentally dynamic things that make Ruby feel like Ruby can't be done in Crystal, at least not without extensive runtime support.

(I haven't looked at this implementation, but I suspect that they end up doing similar things in C++ for the same reason.)