💾 Archived View for idiomdrottning.org › one-thousand-numerals captured on 2022-04-29 at 12:33:24. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-03)

➡️ Next capture (2024-02-05)

-=-=-=-=-=-=-

RE: One Thousand Numerals

Replying to perplexing.space

I used to really think format and loop destroyed the beauty of Lisp but these days I love them. I’m not really sure what and when changed that.

I look at my previous view as overly fixating on the surface-semantics of the syntactic structure of hierarchical, tree shaped lists. Sort of cargo culting that hierarchy and structure as if it were a good fit for loops and formats even though that’s not necessarily always the case. While it can be a good map sometimes (I’ve had some problem domains addressed very well by something like Alex Shinn’s fmt combinators) that’s not inherently true for all DSLs.

xj, an example of where fmt fit perfectly

Lisp is just very well suited for DSLs both nested and flat. srfi-42 is a long-standing fave of mine, and that has a few levels of nesting. Chicken’s run/shell system has only two levels inherently (one list per command) although since it’s quasiquoted and you might want to use generation to piece together the commands the nesting can get pretty deep. But that goes for loop too; the arguments to the macro are still expressions and as such can be nested.

Uh, TL;DR: no need to inject extra parens when they’re not needed♥