4 ms·
Now someone convince Matz to reimplement Ruby in crystal, add optional typing to CRuby, and you have won big time.
by singularity2001 11y ago
Now someone convince Matz to reimplement Ruby in crystal, add optional typing to CRuby, and you have won big time.
- atmosx 11y agoActually, that's already happening[1]. Also note that there is a library for "ruby contracts[2]" (which I didn't try yet, but I'm very eager to do so) which could give the same result as a statically typed language. [1] https://www.omniref.com/blog/blog/2014/11/17/matz-at-rubyconf-2014-will-ruby-3-dot-0-be-statically-typed/ https://www.omniref.com/blog/blog/2014/11/17/matz-at-rubycon... [2] http://egonschiele.github.io/contracts.ruby/ http://egonschiele.github.io/contracts.ruby/.
- masklinn 11y agoExcept for the parts where you've lost spent years reimplementing an implementation-defined language and you've lost the existing C API so most any C extension which doesn't use Fiddle (or similar FFI mechanisms) is incompatible.