When you see this line of code in your source window, how does your brain read it?

My brain says “There’s a hex number, with a couple of 1’s in it.”

Guess what? WRONG. It has one ‘1’. The end character is a secret hidden lowercase “L”. Thanks, Microsoft. Lucida console has literally a one pixel difference between it’s ‘1’ and ‘l’, which is fairly typical. These things are speckled all over mmsystem.h. Personally I never use ‘L’ at the end of a hex digit, and if I was feeling clinically insane enough to do it, I’d at least use a capital ‘L’.

5 thoughts on “Wtf, MS?

  1. LOL!
    yeah… on the computer it should be easy to percieve the differences but apparently Lucida makes it nearly impossible… and i suppose it isnt different colors to highlight the difference between numbers and letters as well, to make it even harder…

    when writing by hand (with pencil) i also find it difficult to make 1’s and l’s look different…
    the same issue with O’s and 0’s 🙂

    Like

  2. of course, the “l” does have its use there, so you can’t just leave it out (you can in most cases, but that’s hardly a rule)

    Like

  3. I agree, it’s VERY rarely needed, but the functionality is there. There’s no real use for it in a strongly typed environment I guess

    Like

Leave a comment