"The road to callback hell is paved with #(...) lambdas."

Follow

@trinsec , which has two syntax for lambdas. The shortest is `#(fun-call % %2)`, which is what the post warns against. More readable is `(fn liitle-known-optional-name [nice-arg-name] stuff-done)`. As she points out, using that little-known-optional-name is really helpful in stack trace debugging. Plus, it's great for readability.

@trinsec To be fair, the short version is very handy much of the time -- when you truly need to do a tiny thing that won't be re-used. But otherwise, I am for the idea of naming things rigorously and profusely.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.