Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Rinmawia1927y@RedBorg programming without semicolons destroys the fun, it like cheating on your favourite game.
It make reading efficient.
Normal programming:
$x = 3 * 3 + 2 / 5
* 10 - 2 * 5 * 4 % 5; // too long so i broke to 2 lines
Python:
x = 3 * 3 + 2 / 5
* 10 - 2 * 5 * 4 % 5
Its difficult to find the ending statememt, so keep on with the semicolon :P -
The ending statement in Python is always at the end of it, if it's not a statement that's supposed to be a one-liner or a statement that contains more than 1 line. In the last case,it's at the end of the last line's end.
-
-vim-31257y@Rinmawia you cam stack statements with “;” , but in your example, you just use some pythonnicnness magic and do “x, y, z = 1, 3, 4”
And btw, if you put a “\” at the end, it will continue to the other line -
-vim-31257yAnd also if you have something like
some_func(0, 1, 1, 2, lol(lol(lol(“yui”))), 5, 8)
You can do
some_func(
0,
1,
...,
lol(
lol(...
),
5,
8
) -
Rinmawia1927y@RedBorg impressive, can we use it as a templating engine like php, cause i know that python is also used for web development
Related Rants
Hope you like it.
This time no water marks...
LOL
joke/meme
statement
error
joke
no
semicolon
programming
and
memes