4 ms·
You're looking for (setq *print-case* :downcase), no need to mess with the reader.
by aeneasmackenzie 2y ago
You're looking for (setq *print-case* :downcase), no need to mess with the reader.
- perihelions 2y ago(You can put this in ~/.sbclrc or your implementation's equivalent dot file!) (Tangentially: I've encountered Common Lisp libraries in that wild that actually break if you do this, highly surprising bugs where the author was doing something too-clever with symbols and compared their representation against hard-coded strings, such that changing your *IDE's default print case* had the effect of breaking a very low-level library. This isn't important to anyone else here; I just wanted to vent. I have so much programming pain that only I know about and no one else in the world shares).
- kagevf 2y agoCL is case-sensitive, but it handles things so you typically don't have to be aware of it. I don't think I'm smart enough to try to do something clever on top of that, so I hope I can avoid your pain.
- tmtvl 2y ago> compared their representation against hard-coded strings Ah, used string= instead of string-equal, did they? Simple mistake to make, not keeping CL being case-insensitive in mind.