Arc Forumnew | comments | leaders | submitlogin
1 point by akkartik 4464 days ago | link | parent

Yeah I've played with this idea too. Wart's def and Anarki's defgeneric support overloading by type, but the original common lisp version of wart also supported overloading by number of args:

http://github.com/akkartik/wart/blob/sbcl/021def.lisp

This is different from your idea and more like java. Or more like ruby, rather; functions are open definitions and you can add clauses to them whenever you want.