quicklisp/quicklisp-projects — Issue #228: Add CL-GENERIC-ARITHMETIC
Author: tarballs-are-good
Created: 2011-11-01 18:28:40+00:00
State: open

`CL-GENERIC-ARITHMETIC` is a system for making numerical operations even slower. More accurately, it makes Common Lisp's numerical operations like `+` and `SQRT` into generic functions which can then be implemented for other classes.

Example:

```
CL/GA-USER> (+ 1 2 3 4 5)
15
CL/GA-USER> (defmethod nullary-+ ((type string)) "")
#
CL/GA-USER> (defmethod unary-+ ((x string)) x)
#
CL/GA-USER> (defmethod binary-+ ((x string) (y string))
(concatenate 'string x y))
#
CL/GA-USER> (+ "hello" "world")
"helloworld"
CL/GA-USER> (defmethod abs ((x string)) (length x))
#
CL/GA-USER> (abs (+ "hello" "world"))
10
```

The project is located [here](https://bitbucket.org/tarballs_are_good/cl-generic-arithmetic) and is authored by me.

All dependencies (just one) are included with Quicklisp already.