News for hackers. Stuff that matters.
Re:Modern C++ and Lisp Programming Style by juki on Thursday March 23, 2017 @01:10AM (#13937536)
The DEFGENERIC line is wrong. It can't have a body like that. It should be something like

    (defgeneric xplusone (x)
      (:method (x) (+ 1 x)))
Also, generic functions are slower than regular functions (due to dynamic dispatch), so using them for type optimization would be rather counterproductive.
Re:Modern C++ and Lisp Programming Style by rurban on Thursday March 23, 2017 @07:48AM (#13938934)
Yes, thanks. I only wanted to point out similarities to abstract classes, generic slow methods.