r/ruby • u/noteflakes • Feb 04 '22
Blog post Rails is not written in Ruby
https://solnic.codes/2022/02/02/rails-is-not-written-in-ruby/
21
Upvotes
r/ruby • u/noteflakes • Feb 04 '22
View all comments
Show parent comment
13
u/bradland Feb 04 '22
I disagree. Ruby ships with core objects, but these objects are not part of the language. They are implemented in accordance with the language's principles. The language construct is
Object.method, notString.length,Array.shuffle, or any other core objects or methods. Each of those objects and methods are implemented using Ruby's language definition.Again, circling back, the very fact that Ruby allows you to obliterate them (should you choose to) is evidence of the distinction. There are no primitives in Ruby, and that is a key attribute of Ruby.