kellysmith12.21
2021-1-11 01:32:31

In my lang, instead of using apply, the procedure application syntax recognizes ..., so instead of (apply proc my-list) in Racket, you’d write (proc my-list ...) in my lang.


kellysmith12.21
2021-1-11 01:33:44

I’d like to provide support for keyword-apply, but I’m not sure what that should look like, syntactically.


kellysmith12.21
2021-1-11 01:41:20

(I don’t like that the user needs to provide presorted, parallel lists to keyword-apply, so I’m going to have that handled automatically.)


kellysmith12.21
2021-1-11 01:45:28

For the syntax, I could have a separate kw... id for a collection of keyword arguments…


kellysmith12.21
2021-1-11 01:50:28

Oh, there’s also the question of what, “a collection of keyword arguments” is. It could be as specific as a hash with keyword keys or a Rebellion record collection, or it could be as general as any dictionary whose keys can be converted into keywords.


kellysmith12.21
2021-1-11 01:53:16

I want to generalize my lang’s apply syntax to allow arbitrary sequences, instead of lists, so I wouldn’t want the keyword counterpart to be overly specific. However, allowing arbitrary dictionaries is probably too general to be useful.


notjack
2021-1-11 05:19:43

I like kw…