4 ms·
I'm not sure what the point of this is. It seems pretty petty. To wit, we could have just we well written... MACLISP (1980): (format t "Week ~R of th
by SeanLuke 14y ago
I'm not sure what the point of this is. It seems pretty petty. To wit, we could have just we well written...
MACLISP (1980):
(format t "Week ~R of the ~:R month of the year ~:@R~%" 15 102 1996)
--> Week fifteen of the one hundred second month of the year MDCCCCLXXXXVI
C/C++/Java/Python/Ruby:
...uh...
COMMON LISP:
(format t "Week ~R of the ~:R month of the year ~:@R~%" 15 102 1996)
--> Week fifteen of the one hundred second month of the year MDCCCCLXXXXVI
There are powerful print functions and then there are powerful print functions.
- warmfuzzykitten 14y agoWhere's your sense of humor? It was intended to be funny, and it was. Of course, like all irony the glass is only half funny.
- calibraxis 14y agoClojure has cl-format. (http://richhickey.github.com/clojure/clojure.pprint-api.html#clojure.pprint/cl-format http://richhickey.github.com/clojure/clojure.pprint-api.html...)
- draegtun 14y agoDitto for Perl: https://metacpan.org/module/Lisp::Fmt https://metacpan.org/module/Lisp::Fmt