(no title)
mg74 | 1 year ago
Python is absolutely the worst language to work in with respect to code formatters. In any other language I can write my code, pressing enter or skipping enter however I want, and then the auto formatter just fixes it and makes it look like normal code. But in python, a forgotten space or an extra space, and it just gives up.
It wouldn't even take much, just add a "end" keyword and the LSP's could just take care of the rest.
GIL and JIT are nice, but please give me end.
dbrueck|1 year ago
I've actively used Python for a quarter of a century (solo, with small teams, with large teams, and with whole dev orgs) and the number of times that not having redundant block delimiters has caused problems is vanishingly small and, interestingly, is on par with the number of times I've had problems with redundant block delimiters getting out of sync, i.e. some variation of
Anytime I switch from Python to another language for awhile, one of the first annoying things is the need to add braces everywhere, and it really rubs because you are reminded how unnecessary they are.Anyway, you can always write #end if you'd like. ;-)
ec109685|1 year ago
saagarjha|1 year ago
alfiopuglisi|1 year ago
I am at the point where I prefer single quotes for strings, instead of double quotes, just because they feel cleaner. And unfortunately pep8 sometimes mandates double quotes for reasons unknown.
eviks|1 year ago
mg74|1 year ago
stavros|1 year ago
mg74|1 year ago
pansa2|1 year ago
mg74|1 year ago
marliechiller|1 year ago
mg74|1 year ago
mixmastamyk|1 year ago
Python’s tradeoffs pay dividends every day, at the expense of few questions a year. Also code is read 10x more than written, where the extra delimiters lower signal to noise.
ptx|1 year ago
Wouldn't that make it behave pretty much as what you expect?
fluorinerocket|1 year ago
unknown|1 year ago
[deleted]