News for hackers. Stuff that matters.
Re:Why I still Lisp by lisper on Monday February 01, 2021 @05:30PM (#25994998)
My point is that this:

> Most implementations of Common Lisp prevent shadowing builtin symbols.

is irrelevant. It's actually irrelevant for two reasons. First, the example under discussion was SQUARE which is not a CL builtin, and second, even if it was, you could just do this:

Just make your own package and do:

(in-package :my-package)

(defmethod square ((n number)) (* n n))

Now you can extend SQUARE to work on things other than numbers. Or, to pick a more realistic example:

(defmethod sqrt ((n number)) (cl:sqrt n))

Re:Why I still Lisp by rini17 on Tuesday February 02, 2021 @06:28AM (#25999750)
Oh that's the misunderstanding, I was talking about overloading of the '*' operator and the consequent confusion, not overloading of 'square'.
Re:Why I still Lisp by lisper on Tuesday February 02, 2021 @11:58AM (#26003423)
* is not an operator in Lisp. It's a function. Lisp doesn't have operators.

To be more precise, cl:* is a function. But you can make a symbol named "*" in another package and define it however you like.