On Thursday 11 December 2008 15:24, Dave Griffith wrote:
> ... 
> On the downside, you can't tell until runtime whether a given function
> call has an acceptable arity, which pretty much any other popular
> language can check at edit-time.

Given that function definitions are closed, it's eminently feasible for 
an editor to detect whether a calling form is valid or not. Keep in 
mind that the only kind of function overloading in Clojure is that 
based on arity.

More complex forms of overloading require the use of multimethods, which 
do their dispatching dynamically and arbitrarily based on the supplied 
arguments (dynamically). In that case, not all calling forms will be 
statically validateable, though some still will.


> --Dave Griffith


Randall Schulz

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to