3 ms·
I'd love to see one of these revitalizations of CL that gets rid of the ALLCAPS. I know it's a small aesthetic thing but it drives me crazy. I found a snippet
by Y_Y 2y ago
I'd love to see one of these revitalizations of CL that gets rid of the ALLCAPS. I know it's a small aesthetic thing but it drives me crazy.
I found a snippet somewhere that messes with string interning and so symbols don't instantly get capitalized, but there's still way too much shouting.
- aeneasmackenzie 2y agoYou'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.
- martinflack 2y agoI always liked it. I type lowercase, the computer speaks back uppercase. We know who said what. It's also nostalgia for BASIC. ;-)