3 ms·
Great to see a chapter on LOOP: https://docs.google.com/document/u/0/d/1L9jdKE-XrCU0VhdsmO5w9-2ozNDrrW1-JOAi3kHrlu4/mobilebasic https://docs.google.com/document
by rayiner 5y ago
Great to see a chapter on LOOP: https://docs.google.com/document/u/0/d/1L9jdKE-XrCU0VhdsmO5w9-2ozNDrrW1-JOAi3kHrlu4/mobilebasic https://docs.google.com/document/u/0/d/1L9jdKE-XrCU0VhdsmO5w...
If you’re unfamiliar with Common Lisp, it’s important to understand that it’s a multi-paradigm language. The presence of closures, key functions in the standard library, and the syntax often push you naturally to a functional solution. But you shouldn’t feel bad about writing a LOOP that mutates a bunch of state under the hood. This isn’t scheme!
- eadmund 5y ago> But you should feel bad about writing a LOOP that mutates a bunch of state under the hood. I think you omitted a word there: one should not feel badly about writing a state-mutating LOOP. That's okay, and often the best solution to a problem. Heck, I wrote a state-mutating TAGBODY just yesterday …
- rayiner 5y agoThanks! TAGBODY is another non-Schemish part of Common Lisp that has its uses.