ruricolist / serapeum

Utilities beyond Alexandria
MIT License
428 stars 42 forks source link

Feat: Support function name list in -> #164

Closed kilianmh closed 7 months ago

kilianmh commented 10 months ago
ruricolist commented 10 months ago

There's a deeper issue here: this would mean it's no longer possible to use -> to declare ftypes for setf functions.

ruricolist commented 9 months ago

One approach might be to dispatch on whether the first element of the list is a symbol in the :cl package; if so treat it as a function name that's a list; otherwise treat it as a list of function names.

kilianmh commented 9 months ago

Sure we can test whether its part of the cl package. Alternatively, if setf is the only special case, we could check if the first element is the setf symbol.

kilianmh commented 7 months ago

I added now the check whether the first symbol is in the cl package. Now setf should work. Also there are more test-cases. Anything else needs to change?

ruricolist commented 7 months ago

Merged, thanks!