ID:929553
 
Applies to:Dream Maker
Status: Open

Issue hasn't been assigned a status value.
I want to see the ability to "tab" with spaces removed. There are some who prefer that though, so I'll give them some slack.

I'm happy with Dream Maker giving an error if you have spaces being used as "tabs" and actual tabs in the same file.

Note: This would also rid BYOND of most of it's rips, due to the massive amount of compile errors they are all going to get the next time they try to update their game.
Albro1 wrote:
Note: This would also rid BYOND of most of it's rips, due to the massive amount of compile errors they are all going to get the next time they try to update their game.



+1
In response to A.T.H.K
A.T.H.K wrote:
Albro1 wrote:
Note: This would also rid BYOND of most of it's rips, due to the massive amount of compile errors they are all going to get the next time they try to update their game.



+1
Albro1 wrote:
I want to see the ability to "tab" with spaces removed. There are some who prefer that though, so I'll give them some slack.

There are a lot (and by a lot I mean a lot) of programmers who tab with spaces; in fact, see this feature request on the option to convert tab presses to spaces. I'm not sure why you'd ask for removing a feature like that?
I think he means same file should have only tabs or only spaces, not both. Therefore feature you linked can still exist.
Exactly, Zaoshi. Having spaces and tabs makes things look completely unorganized and by all rights should be an indentation error.
Personally I do not see any logical reason to use spaces.
If you're going to put 4 spaces, then just use tab. If you're using 2 spaces - configure tab to be 2 spaces big. That's all. With spaces you just hit enter/backspace more times.
In response to Zaoshi
Zaoshi wrote:
Personally I do not see any logical reason to use spaces.

Visual presentation of code is important for the readability of code. Normally, it would be kosher to use tabs for indentation and spaces for alignment. But thats not possible in DM, as it becomes an indentation error.

In the end, though, its usually pretty random - Some people prefer spaces, some prefer tabs. Supporting both as fully as possible is usually the way to go, and what almost any modern IDE will do. Intentionally causing more indentation errors amongst users than you have to due to stylistic concerns, doesn't fit well with DM. Which allows a myriad of syntax.

Not that I agree with that, but it is how they've chosen to approach it - I prefer a standardized way to write things (Such as Google Go's approach, which houses a 'code formatter' for you, that will format the code according to their standard set).