You are viewing a single thread.
View all comments View context
2 points

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?

permalink
report
parent
reply
1 point

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

permalink
report
parent
reply
1 point
*

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.

permalink
report
parent
reply
2 points

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

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

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

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 3.4K

    Monthly active users

  • 1K

    Posts

  • 38K

    Comments