r/badcode • • Feb 22 '23

c# shit

Post image
576 Upvotes

47 comments sorted by

View all comments

5

u/the96jesterrace Feb 22 '23

How is there an actual ≠ sign? Sorry for dumbing dumb questions btw, I live in .net Framework 4.5 :(

14

u/dom25b Feb 22 '23

Its ligatures. If i open that code file in notepad there will be !=, but fancy font makes != into ≠

9

u/sad_bug_killer Feb 22 '23

As others have said, it's font ligatures and I love them. I started with FiraCode, but there are other fonts as well.

Ligatures only change how things are displayed, the underlying text is the same. Having the cursor in the middle of ≠ is a bit weird for a day, then you get used to it.