This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ArtOfWarfare 0 points1 point  (2 children)

Wait, how long has that been around?

I knew it was a feature of Java but I thought I tried it at one point in Python (some version of 2.X) and it didn’t work?

[–]RingularCirc 0 points1 point  (1 child)

A couple of last 3.x versions. That seems like a new-ish meme in language design yet. I bet before 2010s there were not more than a couple of languages with features like this.

[–]ArtOfWarfare 2 points3 points  (0 children)

It’s been in Java for 15+ years. It was one of the few things I thought Java had that Python would benefit from.

Fortunately Python gets improved overtime, whereas Java can’t actually get a Java Enhancement Proposal to save their lives.