LOOP Common Lisps Superior For

preview_player
Показать описание
This tutorial is focused on Common Lisp's Loop Macro. The best form of procedural iteration I have ever seen.

common lisp website:

Let me know what you think and if there is anything specific you would like to learn about.

----------------► Wanna Support Me? ◀︎----------------
Github:
Patreon:

----------------► Wanna Checkout My Dots? ◀︎----------------
Vimrc:
Emacs Config:
----------------► Come Join The Community◀︎----------------
LBRY:
Matrix Space:
Discord:

00:00 Intro
Рекомендации по теме
Комментарии
Автор

There are several cute things included in the loop extensions that make certain toy problems trivial, but it is so un-Lispy that I avoid them all. It's more than just an aesthetic issue -- a DSL, especially a non-Lispy one, belongs in a loadable library, not the language core. Because of the syntax of this DSL, it is tricky and sometimes impossible to add type declarations without violating that syntax. Similarly, it is tricky and sometimes impossible to instrument the code with things like counters and accumulators and conditional breakpoints. I think it is much better to write one's own specialized iterator macros that look and behave more like the core built-ins of map, reduce, and do, but with whatever specializations and optimizations that apply to the problem at hand. I also think it is better to do that because it lets me be a programmer, not a configuration technician.

ericpmoss
Автор

Thanks for the explanation of the loop macro. Never really looked into it.

AndersJackson
Автор

Loop is an abomination!

(This comment is sponsored by the Iterate gang.)

jwmcq
visit shbcf.ru