6 ms·
Just because it modifies the standard library classes doesn't make it a separate language in its own right. If you used Java but with a different implementation
by Scriptor 13y ago
Just because it modifies the standard library classes doesn't make it a separate language in its own right. If you used Java but with a different implementation for, say, linked lists than the standard one you'd still be using Java.
- dangerlibrary 13y agoAbsolutely! Rails is written in Ruby and is run by the Ruby interpreter. No doubt about it. But if you dig in you find that pretty much every Ruby class (including the low-level ones) has been modified for use in Rails. In addition, a lot of Rails code is written in a purpose-built DSL. Rails has built-in DSLs for web routing, email sending/receiving, database queries, &c. You can split hairs and say that these are APIs and not real DSLs, but I think the point about dynamic languages blurring the lines is totally fair. You could implement the core Java spec in Ruby by modifying the base classes, and at some point you aren't writing Ruby any more.