Rude. :blobcathissing:

$ python
Python 3.14.6 (main, Jun 21 2026, 09:22:33) [GCC 15.2.1 20260214] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> x=0
>>> x++
File "<python-input-1>", line 1
x++
^
SyntaxError: invalid syntax
>>>

Better.

$ perl
my $x = 0;
$x++;
print "$x\n";
<Ctrl+D>
1

Why does Python not offer ++? It annoyed me back when I cared about Python at all.

@vaporeon_ some people don't like the ++ shit because it leads people to make logical errors, which I will admit just happened to me in the recent holly for loop hellthread

@wallhackio Cannot relate, and it's rude to expect me to type things like i+=1 when i++ and ++i are right there. And also your logical error was assuming that i++ or ++i will return 1 when they'll actually return either the previous or the new value of i

Follow

@vaporeon_ I love the ++i shit even though I try to get to cute with it and make mistakes so I'm not saying I agree with the opinion, but it is an opinion some people have.

Personally I think it is fine and cool to have strong opinions on things even when I disagree with them.

@wallhackio Well, I think those people are WRONG and it is rude to not let me have i++ when that's the best way to increment a variable by 1 :blobcathissing:

Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.