Comment by nine_k
21 days ago
The why: because Lua, Python, JavaScript, Janet, etc lack many or all these features. And each of these features is known to make life easier for a human programmer.
21 days ago
The why: because Lua, Python, JavaScript, Janet, etc lack many or all these features. And each of these features is known to make life easier for a human programmer.
Looking through that list of features, Ruby (the dynamic language I know best) has all but 1 built-in (and the other can be added with Gems). I'm guessing Python probably has them all too (but I don't know Python that well). They're pretty common. So the why still isn't clear.
Tell me more about Ruby generics….
Want to split hairs eh?
Duck typing achieves the same thing as "generics", just at runtime vs. compile time.
1 reply →
Is Ruby easy to embed in a C program?
Yes -> https://mruby.org
It's also incredibly easy to extend the main Ruby implementation with C, C++, Odin, Zig, Rust, Fortran, etc... Literally a few lines.
1 reply →
That was originally the point of Ruby
RPG Maker used to embed Ruby before it was cool (and before they switched to JS for web support).