Damus
graywolf profile picture
graywolf
@graywolf
How do you all prefer your syntax-rules?

(define-syntax-rule (my-when cond body body* ...)
(when cond body body* ...))

for precision or

(define-syntax-rule (my-when cond body ...)
(when cond body ...))

for readability? And what about documentation?

Evaluate @nprofile1q...{body body* ...} ...

or

Evaluate @nprofile1q...{body ...} ...

For me, just `body ...' reads better (both in code and in the manual, but `body body* ...' is more accurate, so I am on the fence about this.

#guile #scheme
1
Panicz Maciej Godek · 7w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqhxtz7kyn222lr0a62lpgxjp39uuh8tm8j8z6y7ucs2afm83lpztq3rj0m9 nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqgl8n3jpqxcggyudnhjwktgz675cjadarjz877nxyz5qtq9fajf3stgf8tp In cases like this I'd probably go with (define-syntax-rule (my-when ...