28 karma · joined Sep 24, 2020 (6y ago) · 13 submissions
comment 5y ago · link · parent
Does that mean that being honest is necessarily always the best thing to do? I'm not sure. It's worth considering. But I suspect that it will take a while for that kind of understanding to make headway in the higher levels of government.
(This goes with the caveat that people and organizations who simply lie all the time can get away with it. Basically, you either have to live firmly in reality, or you have to sell a version of the real world that's been thoroughly modified in order to conform to some vision. Living mostly in reality while occasionally lying is becoming an untenable strategy.)
comment 5y ago · link · parent
Now, it's perhaps inevitable that they would use that lens, but it seems like it's the only lens they use.
Perhaps they're even right -- perhaps the average US citizen really is selfish and lacking in independent critical thinking skills, and perhaps we can't be trusted with the truth. But it means that anyone who knows better is constantly trying to read between the lines.
I blame the pervasive PR culture in the US, as well as basic stuff like a shit education system.
comment 5y ago · link · parent
The generator object that gets created behind the scenes.
> And, if you can answer that why could there not be such an object for a pattern match expression?
There could be, I suppose, just as there could be for "if" or "for". If Python decided to have lexical scoping everywhere, I would be in favor of that (but then people would complain about breaking changes). In lieu of that, I like the consistency.
comment 5y ago · link · parent
> (As well as a method to “pin” variables from the containing scope to use them in matches.)
This is a good idea, I agree -- at least for Python, where you would obviously just call __eq__.
EDIT: It looks like you actually can match against constants with this PEP, as long as you access your constant with a dot (e.g., HttpError.NotFound). This seems like a perfectly reasonable solution to me.
comment 5y ago · link · parent
comment 5y ago · link · parent
EDIT: It looks like you actually can match against constants with this PEP, as long as you access your constant with a dot (e.g., HttpError.NotFound). This seems like a perfectly reasonable solution to me.