4 ms·
> whitespace is hard to change What text editor are you using? Select region, Tab or Shift-Tab, and move on. > Whitespace is a terrible idea. That’s like, ju
by falcolas 6y ago
> whitespace is hard to change
What text editor are you using? Select region, Tab or Shift-Tab, and move on.
> Whitespace is a terrible idea.
That’s like, just your opinion man.
The only time I’ve had issues with blocks and whitespace is when some monster mixed in tabs. Thankfully every decent editor can make whitespace characters visible, and a quick find/replace fixed the heinous action.
- mercer 6y ago> The only time I’ve had issues with blocks and whitespace is when some monster mixed in tabs. Thankfully every decent editor can make whitespace characters visible, and a quick find/replace fixed the heinous action. Sure, but in the non-Python languages that I use, that's not necessary, and in most cases, these days anyways, simply saving the file will fix indentation!
- falcolas 6y agoInstead, you have to insert a '{', move to the end of the block and insert a '}'. Or 'begin' and 'end' (or whatever delimiter is used). Some IDEs also support selecting the new block region and hitting a shortcut. None of these are any less onerous than selecting and hitting tab.
- mercer 6y agoI've had editors or git merges mess with whitespace. I've never had editors remove braces or begin..end blocks, and merges have rarely caused issues with begin..end blocks or braces. apples and oranges , in this case.