munificent / craftinginterpreters

Repository for the book "Crafting Interpreters"
http://www.craftinginterpreters.com/
Other
8.75k stars 1.03k forks source link

Misleading note about Ruby on page 213 #999

Open isabanin opened 2 years ago

isabanin commented 2 years ago

Found a bit of misleading info on page 213 of the paperback version of the book. It goes like this:

Languages have a variety of notations for the chunk of code that sets up a new object for a class. C++, Java, and C# use a method whose name matches the class name. Ruby and Python call it init().

Ruby actually calls this method initialize(), not init().