4 ms·
You should learn about WITH-OUTPUT-TO-STRING. (string-downcase (string thing)) should be written (string-downcase thing) The fdefinition trick is not a good o
by zachbeane 16y ago
You should learn about WITH-OUTPUT-TO-STRING.
(string-downcase (string thing)) should be written (string-downcase thing)
The fdefinition trick is not a good one. Define the functions at compile-time, not at runtime.
- chaitanya 16y ago> (string-downcase (string thing)) should be written (string-downcase thing) I learnt this trick only after working on CL for a couple of years!
- sgrove 16y agoI was originally using macros, but I prefer to use functions instead. I'll give it some thought, you may be right in this case. And thanks for the (string-downcase thing) trick, I'll update that right now :)
- zachbeane 16y agoFunctions are good. Defining them at runtime with (setf (fdefinition ...) ...) is rarely good.