fossilesque@mander.xyzM to Science Memes@mander.xyzEnglish · 7 months ago))<>((mander.xyzimagemessage-square115fedilinkarrow-up11.32Karrow-down116
arrow-up11.3Karrow-down1image))<>((mander.xyzfossilesque@mander.xyzM to Science Memes@mander.xyzEnglish · 7 months agomessage-square115fedilink
minus-squareoce 🐆@jlai.lulinkfedilinkEnglisharrow-up7·7 months agoPython forcing end of line and tabs kinda does. Add Black auto-formatter and it’s pretty good.
minus-squarefrezik@midwest.sociallinkfedilinkEnglisharrow-up1·7 months agoI’ve seen too many Python devs write out complex statements all on one crammed up line. Including some that are in the main docs. Enforced whitespace is just one aspect of readable code. There are many others, and Python is no better at enforcing those than any other language.
minus-squareoce 🐆@jlai.lulinkfedilinkEnglisharrow-up2·7 months agoThat would probably make very long lines and black would automatically add returns to line with proper indentations. But it has a a limit for sure. If you chain many list comprehensions it’s going to be a mess.
Python forcing end of line and tabs kinda does. Add Black auto-formatter and it’s pretty good.
I’ve seen too many Python devs write out complex statements all on one crammed up line. Including some that are in the main docs.
Enforced whitespace is just one aspect of readable code. There are many others, and Python is no better at enforcing those than any other language.
That would probably make very long lines and black would automatically add returns to line with proper indentations. But it has a a limit for sure. If you chain many list comprehensions it’s going to be a mess.