Hacker News new | past | comments | ask | show | jobs | submit login

> Common Lisp happens to be on the upper end of what loop allows – you can use it as a standard for loop pretty easily, but the interface gives you many other options.

If you really wanna get freaky try 'do. It is the heroin addicted cousin of 'loop

https://www.lispworks.com/documentation/HyperSpec/Body/m_do_...






`do` is very straightforward and basic compared to the things that `loop` allows.

oh no. maybe you have in mind 'dolist or 'dotimes

'do is much more general and way more powerful. in some sense 'loop is the taming of 'do. see for example

https://www.lispworks.com/documentation/lcl50/loop/loop-7.ht...


No, I mean do. It's basically just a C style for loop except with a return value. Nothing special.

yes the syntax for 'do is simple, like that of lisp. however 'do allows you to make far more complex iteration constructs than 'loop. 'loop is just a DSL to make some of these constructs more concise. read up on it

LOOP has the DO functionality included.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: