I would say that above 4 args, it starts to exercise your memory except if you
have auto-completion and a tool tip provided by your IDE.

Optional arguments are better handled with keywords than with an option map or
multiple signatures.
This the area were you can get lost. At least with keyword de structuring you 
get
an error if you misspelled one and the names might ease up the memory
stress if they are chosen properly.

Luc

> I think one of the main reasons we don't use keyword arguments
> everywhere is their verbosity. Most function names implicate the order
> of arguments, and many functions don't take more than two or three.
> It's a trade-off between how much a programmer has to remember and how
> much he has to code.
> 
> 
> 
> On Sun, Dec 16, 2012 at 11:34 PM, Michael Hanson
> <[email protected]> wrote:
> > I remember in Rich Hickey's talk "Simplicity Matters", he mentioned that
> > forcing the user to remember the order of function arguments, as opposed to
> > using keyword arguments, is overly-complex; yet, reading Clojure source code
> > and looking at the standard functions, I find that keyword arguments are
> > never used. Why is that? Am I missing something or an explanation somewhere?
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Clojure" group.
> > To post to this group, send email to [email protected]
> > Note that posts from new members are moderated - please be patient with your
> > first post.
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> > http://groups.google.com/group/clojure?hl=en
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to [email protected]
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> 
--
Softaddicts<[email protected]> sent by ibisMail from my ipad!

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to