by soc88 · 14y ago · 0 comments
The problem is adding it as an "instance" method to a collection and expecting that it is usable by something not being a collection at all.
So CL solves the problem without adding more complexity, whereas in Scala you have to extort yourself to shoehorn some functionality after the dot.
(defmethod filter-map (f (c (eql some-particular-collection))) ...)
but I suspect that's not what you meant.
I also can't make heads or tails out of "expecting that it (which "it"?) is usable by something not being a collection at all." I'm not even sure that's proper English, let alone semantically meaningful.
Additionally, last time I looked Cl wasn't really statically typed. Has that changed recently?
No, CL is not statically typed. And your point would be...?
Of course, I don't program in Scala, so my explanation may not be accurate.
Ahh, the famous behavior of Lisp fanatics. Tragic, how it is obvious to everyone – except themselves – why no one wants to use their language.
> No, CL is not statically typed. And your point would be...?
Uh ... what about
a) Author complains about the inability of the compiler to prove some property of his code.
b) Untyped languages – by definition – don't provide any substantial proving abilities based on types.
c) Therefore, you are completely missing the point.