That’s actually me removing semicolons from Python.
import " " as ;
I;don’t;think;that;helps
Folks acting like Python is the only language without semicolons. 😏
I got tripped up so many time in the last 3 weeks using PHP after years in ML family languages. I am already newlining & it’d be poor style to put more than one statement on a line so what is the point of these semicolons?
it’d be poor style to put more than one statement on a line
Unlike Python, most languages do not endorse a specific concept of style. You’re free to dabble in all the bad style choices you like, on the off chance that once in a blue moon they prove to be situationally useful.
can I interest you in some delicious linters
I have a plugin in VSCode to remind me not to forget the semicolons
How does one manually add a semicolon? vs. automatically?
Manually would be if it prompted you every time you every time the program inserts one. No, wait…
JS formatters add them if the project requires it
For bonus points take their code and completely go wild with utterly random indentation and line breaks, just to drive the point home. 😈
Pfff just randomly replace tabs with 4 spaces and see the world burn
4 spaces is the preferred pythons is happy with either but the standard is 4 spaces. Vscodium ensures that.
Your editor is happy with either, but is it happy with both?
My editor will take either and convert it to 4 spaces. Python can use spaces or tabs but not both in the same file.
Buahahahah I know what to do next commit
Its the python equivalent of a Greek question mark
Plot twist https://programming.dev/post/12825985
This is why linting and auto-format on save exists in IDEs. Don’t make things harder on yourself.
PythonAmateur programmersI was taught python by my school but I would rather write in other languages but the difference in formatting still gets me after years