louis,
@louis@emacs.ch avatar

Is it just me or is code using the advanced LOOP macro horrible to debug / step through...?

galdor,
@galdor@emacs.ch avatar

@louis LOOP is a terrible macro. People like it because it can be shorter than the equivalent DO form, but it is a very non-lispy form that makes it really hard to understand what is really going on.

Of course everytimes I say that, I get all kinds of people attacking me because "muh LOOP is just fine", but hey this is the Internet :)

louis,
@louis@emacs.ch avatar

@galdor I was more in the "pro-LOOP" crowd because I liked it how concise a problem can be expressed. Until today. I think it is better to just forget about it and use DO or whatever. When there is something strange happening it is impossible for SBCL to show the locals, even when using STEP. Btw. when I stepped through a LOOP it was doing very strange things that don't even reflect the code I wrote.

galdor,
@galdor@emacs.ch avatar

@louis @pkw

By someone much more reputed than me: https://www.paulgraham.com/loop.html

As for iterate, I still do not see the point of pulling an external library when DO & co do the job perfectly. Developers will go through extreme lengths just to avoid writing a bit more of code, even though the slightly longer code is so much simple (something Go got right, at least).

pkw,
@pkw@mastodon.sdf.org avatar

@louis @galdor I sorta am new to common lisp and skipped straight past loop to using iterate, and i quite like it.

(I use loop for some simple things.)

I'm curious if any of you like iterate.

@ksaj

louis,
@louis@emacs.ch avatar

@pkw @galdor @ksaj I'm kind of hesitant to use external dependencies for "simple" stuff like iteration. Iterate features its own DSL, too afaik.

Also, every non-essential dependency brings the risk of being stuck with SBCL like forever (i.e. the ubiquitous serapeum lib didn't compile on CLASP until just recently.)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • magazineikmin
  • InstantRegret
  • GTA5RPClips
  • ethstaker
  • Youngstown
  • everett
  • slotface
  • osvaldo12
  • rosin
  • mdbf
  • kavyap
  • thenastyranch
  • ngwrru68w68
  • megavids
  • Durango
  • modclub
  • cubers
  • khanakhh
  • Leos
  • tacticalgear
  • cisconetworking
  • vwfavf
  • tester
  • anitta
  • normalnudes
  • provamag3
  • JUstTest
  • All magazines