Can functions be overloaded in LISP, as they can be in C #?

I find overloading to be very useful in my C # code. I know that this can be done in many other languages ​​(C ++ for sure).

Does LISP provide overload or something equivalent?

+6
source share
2 answers

Yes, it has β€œsomething similar,” but more powerful: common functions .

EDIT: I did not know that defining overload implies resolving compile time. Thanks to Rainer Joswig.

+4
source

Generic Lisp does not work.

Generic Lisp does not support overloading.

Generic Lisp provides polymorphism via CLOS, but not overloading.

+3
source

All Articles