3 ms·
I think the Perl 6 example should really use [0-9] instead of \d because it's unlikely that unicode numerals are allowed (in the Common Lisp spec). Anyway neit
by draegtun 10y ago
I think the Perl 6 example should really use [0-9] instead of \d because it's unlikely that unicode numerals are allowed (in the Common Lisp spec).
Anyway neither example fully covers the Common Lisp spec for a number atom (for eg. scientific notation or rationals).
- yellowapple 10y agoI don't think covering all of the Common Lisp spec is required to be Greenspun-compliant ;)
- draegtun 10y agoIn that case Rebol is already Greenspun-compliant ;-) (print (multiply (add 1 2) 3)) ... will print an answer of 9