This short example compares the syntaxes. First, normal Common Lisp:
> (+ 1 2)
3
> (defvar x 34)
X
> (defvar y 25)
Y
> (expt x y)
193630125104980427932766033374162714624
> (expt x (- y 12))
81138303245565435904
>
Now, exactly the same sequence of operations using OPFR syntax:
opfr> + 1 2
3
opfr> defvar x 34
opfr> defvar y 25
opfr> expt x y
193630125104980427932766033374162714624
opfr> expt x (- y 12)
81138303245565435904
opfr>
Original source: http://rpw3.org/hacks/lisp/opfr.lisp
There is an updated repository at: git://git.feelingofgreen.ru/opfr
License: BSD
This page is linked from: com.informatimago.common-lisp.interactive Vladimir Sedach
CLiki pages can be edited by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively