4 ms·
Nope. Just try insert code formatter with 8 spaces into code formatted with 4, or 2. IDE will make something that compiles, it doesn't mean that it works proper
by pleasecalllater 9y ago
Nope. Just try insert code formatter with 8 spaces into code formatted with 4, or 2. IDE will make something that compiles, it doesn't mean that it works properly.
- true_religion 9y agoJust tried that---typing like mad in a wordpad, with 12 spaces of indentation, then copying into PyCharm and it worked. Mixed spaces and tabs as a next go, and it worked too---converting the pasted tabs into spaces of my style. Smart-tabbing is pretty smart. Granted, I knew that so long as the indents were proper (i.e it compiles), that pasting at that point would give valid code but... I can't see how using braces would have been different. Just because it compiles, doesn't mean it works. I've pasted javascript incorrectly multiple time to produce valid, but incorrect for my needs code.