4 ms·
Tiny question about lox : does it support arrays ? I understand it might not be that interesting as a concept so its removed from the example language to keep i
by makapuf 7y ago
Tiny question about lox : does it support arrays ? I understand it might not be that interesting as a concept so its removed from the example language to keep it smaller, but I was wondering if I missed anything ? If not, how would those be declared or implemented ?
- munificent 7y agoIt does not. I agonized over whether to include them because the language is really limited without them. I even had an implementation. But it wasn't very conceptually interesting, so ultimately I decided it could be cut. There is an exercise in one of the chapters to add them, and you can see my answer to that here: https://github.com/munificent/craftinginterpreters/blob/master/note/answers/chapter13_inheritance/3.md https://github.com/munificent/craftinginterpreters/blob/mast...