Re:“I'm basically giving myself a permanent vacation from be...
by lisper on Thursday July 12, 2018 @06:31PM
(#17519165)
Python has open-braces in the form of colons. If you use emacs, you can use the PASS statement as a close-brace and everything will auto-indent properly. Python purists have conniptions when they see this programming style, but I've used it for nearly 20 years and it works for me.
[ Parent
| on HN ]
Re:“I'm basically giving myself a permanent vacation from be...
by rrmm on Friday July 13, 2018 @12:56AM
(#17520610)
I usually close blocks with "#end <whatever>". It doesn't automatically format, but it at least makes it clear to me should the formatting get messed up. I keep thinking about changing the emacs mode to respect this, but it never causes enough of an issue to make me do it.