munificent / craftinginterpreters

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

Are we allowed to "repurpose" code that was used in the book? #988

Closed daresom closed 3 years ago

daresom commented 3 years ago

Hello! Ive been reading Crafting Interpreters for a few weeks and I love it so far, it's understandable and easy to read. On a chapter, specifically 14.3. It's about making, and writing to a dynamic array (chunks). And my mind jumped to some kind of vector (c++ dynamic array) implementation in c. The functions where we learn how to allocate/reallocate memory to the chunk and write to it helped me to get a starting point on how to somewhat implement basic functions of a vector. My plan is to use some of the functions in the book and slowly build up from there. Is this allowed?

cagix commented 3 years ago

According to the LICENSE document, the MIT license applies to the source code.

daresom commented 3 years ago

Alright, thanks!

munificent commented 2 years ago

@cagix is right. You're free to do whatever you want with the code in the book (but not the text, which is more restricted).

cagix commented 2 years ago

love your book, btw!