Classes and Instances · Crafting Interpreters
If you see a mistake, find something unclear, or have a suggestion, please let me know. Don't worry, I won't spam you.) Caring too much for objects can destroy you. Only--if you care for a thing enough, it takes on a life of its own, doesn't it? And isn't the whole point of things--beautiful things--that they connect you to some larger beauty? The last area left to implement in clox is object-oriented programming. OOP is a bundle of intertwined features: classes, instances, fields, methods, initializers, and inheritance. Using relatively high-level Java, we packed all that into two chapters. Now that we're coding in C, which feels like building a model of the Eiffel tower out of toothpicks, we'll devote three chapters to covering the same territory.
Dec-31-2019, 22:14:33 GMT