Arc Forumnew | comments | leaders | submitlogin
Keyword arguments
8 points by blandest 6119 days ago | 1 comment
I think they are useful for specifying (safe) default values, or for complex functions. I see that Arc has rreduce, but it could have been just reduce with :from-end t. It's true that rreduce is shorter. However, should you write a new function (maybe duplicate some code) were you could have used a simple argument combination ?


2 points by gugamilare 6118 days ago | link

Well, key arguments can be replaced with an assoc list given as last parameter when needed. Using rreduce is much better and simpler than (reduce ... :from-end t). Maybe it is time to addapt the idea of keywords and create a new one?

-----