3 ms·
I'm not a PL expert, but Ruby's semantics seem much more complicated than JavaScript's.
by chickenfries 10y ago
I'm not a PL expert, but Ruby's semantics seem much more complicated than JavaScript's.
- goatlover 10y agoPerhaps, but Ruby is are more consistent. There is no implicit conversion, no optional semicolons, no dynamic this, the inheritance chain is not disguised by Java-like syntax, everything is an object (there are no primitives), object construction is always uses the .new method, containers mixin Enumerate for a consistent API across arras, hashes, etc. There's no need for "use strict" or built-in statements like with to ignore. All operations are messages between objects. You can extend the semantics by defining message operation on an object, so that you can use + for more than the builtin classes, where it makes sense to do so.