this post was submitted on 28 Feb 2024
636 points (97.2% liked)

Programmer Humor

19197 readers
1079 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
636
wait what (pawb.social)
submitted 6 months ago* (last edited 6 months ago) by [email protected] to c/[email protected]
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 6 months ago (1 children)

What if instead of having the IDE special case space characters at the start of a line, we had a special character that could represent a variable width space?

[–] [email protected] 1 points 6 months ago (1 children)

What if we did that, and then wanted to align something?

[–] [email protected] 1 points 6 months ago* (last edited 6 months ago) (1 children)

Then you use the variable width space for code indentation, then, when you're at the code indentation level, you'd switch to spaces for alignment. If the IDE special cased all space characters at the start of the line you wouldn't have that flexibility. You could also easily create a linter that ensured that the variable width space always has the correct indentation level, and ignore the standard space characters after it.

[–] [email protected] 2 points 6 months ago

You're entirely correct. Plus, I hate the idea of changing the width of spaces for any reason lol.