Email or username:

Password:

Forgot your password?
Top-level
Colin

@abcdw Sorry I haven't touched Scheme in a bit. If it has alists I'm assuming it's also part of the culture to use plists (Property Lists) of the form:

(:a 1 :b 2 :c3)

These are common in CL and Elisp at least, and I've always found them simpler than alists.

3 comments
Andrew Tropin

@fosskers Yep, it's possible to use plists in Scheme, but it doesn't solve the problem of lack of destructuring. And the tooling for plists probably is even more lacking.

There are a few pattern matching libs, and one of them maybe can do the job. The built in one doesn't AFAIK. Managing external dependencies in Guile is a pain at the moment.

Want this functionality OOTB 😔
clojure.org/guides/destructuri

Colin

@abcdw I felt the pain of dep management in Guile about a year ago when I was playing with it. While "use Guix" is a solution, it isn't a general one.

Go Up