Arc Forumnew | comments | leaders | submitlogin
1 point by aw 5263 days ago | link | parent

I sometimes use lists as compound keys, so I need a version of case that lets me compare against literal lists (whether it gets called "case" as it is in Arc now or something else).

However I don't use Anarki, so it doesn't matter to me whether you push it there.



2 points by rocketnia 5262 days ago | link

I think you can still match against literal lists without much trouble.

  (case compound-key
    ((a certain key))   ...
    ((some other key))  ...
                        ...)
It's just that the "option list" parentheses on the outside of the case are optional when it's a single non-cons option.

-----

1 point by rntz 5262 days ago | link

It may not matter to you, but IMO it matters to the community (what little of it there is) that anarki and arc not break compatibility in such a simple case as this.

-----