libera/#lisp - IRC Chatlog
Search
2:05:07
mdhughes
For the assoc situation, I wrote a tiny function alref that checks pair? and true, and returns cdr if safe. It takes a minute to put it in your own common library.
2:06:04
mdhughes
Scheme largely assumes you want to build tools yourself, BUT it has a lot of libraries if you don't.
2:06:16
aeth
The hard part to learn is LET/LET*-based bindings with the explicit scope which, yes, Scheme doesn't force you to do, but in practice, I think most Scheme winds up doing that instead of using internal DEFINEs for variables, anyway
2:06:55
aeth
The other hard part is when there's an implicit-PROGN/BEGIN, which is also mostly the same (e.g. IF vs COND vs WHEN vs UNLESS, etc.)
2:07:22
mdhughes
Yeah, I use a lot of let* or letrec*, chains of definitions, then one bit of logic or a return at the bottom.