News for hackers. Stuff that matters.
Re:Common Lisp Object System (CLOS) by dj_mc_merlin on Wednesday November 23, 2022 @11:15AM (#33721066)
> Unless by using the CLOS you mean having to explicitly opt-in by using classes, multiple dispatch, multiple inheritance, generic functions, the MOP and all that weird stuff.

Yes, that's what I meant. The fact that the CL type system maps into the class system doesn't mean we all code OOP. If you want to argue semantics, sure..

SBCL will generate _very_ different code for fixnums vs general objects, so much so that claiming that (+ 1 2) is using CLOS makes no sense.

Re:Common Lisp Object System (CLOS) by TurboHaskal on Wednesday November 23, 2022 @11:31AM (#33721280)
It makes sense to me. The same as claiming that doing `1 + 2` in OCaml is making use of the type system despite me not writing any type information and the language performing type erasure.