Conversation
|
I'm inclined to say we shouldn't be opinionated except where syntax itself dictates. Text editors are personal for programmers which is why we love Atom. |
|
So would you support reverting the setting in language-python that defaults to four spaces? |
|
I think so, but I'm really curious to hear what others think. |
|
Just out of curiosity, how are tabs baneful in Python? They seem like the most logical choice of indentation style for a whitespace-significant language. |
|
I agree that we shouldn't be opinionated, we should only support syntactic requirements. Personally, I feel like Python is a special exception because it is:
Similarly, I would support updating the language-go package to have defaults in line with the gofmt tool (even though the gofmt tool itself makes such an effort unnecessary). |
|
I've written Python using hard tabs before. Unlike YAML, spaces aren't a syntactic requirement of Python. Therefore, there's no logical reason a user MUST use spaces as their indent style when authoring Python code. Having the editor unexpectedly change indentation style runs counter to user expectations. Exceptions shouldn't be made on a "users should" basis, because that introduces a slippery slope. Look at PHP's PEP guidelines. Note how they also mandate the use of 4-spaces instead of tabs. Since that's what the community recommendation is, should Atom be obliged to honour that, too? What about Rust, whose maintainers WANT you to use spaces instead of tabs? All of these pose questions that are difficult to answer short of admittedly arbitrary logic like "that's what the community's agreed on". In other words, it's a Pandora's Box. Best leave it closed. |
|
@Alhadis Thank you very much for your feedback. We have heard from you on this multiple times and we know your stance. It is time to allow the Atom team to discuss what we are comfortable with supporting and why. |
Rendered