@aparrish rude of python not to become perl but only for me and not anyone else's code I have to deal with imo
Eh. I once worked on a 6k-line Python script that was almost entirely the body of a single 'for' loop. That loop body consisted only of a giant if-else statement of the form:
elif entry['ghc76893'] ...:
The loop variable ('n') was global and by used functions.
Okay, so I mostly just wanted to horrify you, but also: this program would probably have been neater if written in Perl just because of 'my', 'use strict' and blocks.
@aparrish Ruby has this, and Rubocop, of course, doesn't like it one bit.
@aparrish I'd never read that before. I agree it's a nice one, and no worse than all the other syntax we've been adding lately. Would prefer this to the walrus operator for instance.
@aparrish ruby has this and it's almost always a Pretty Bad Idea but occasionally pretty useful.
Hometown is adapted from Mastodon, a decentralized social network with no ads, no corporate surveillance, and ethical design.