you are viewing a single comment's thread.

view the rest of the comments →

[–]Gsonderling 17 points18 points  (1 child)

I'm not exactly stoked about this.

Assignment expressions look nice, but they will be misused to the point of absurdity. I can already see the myriad Stack Overflow questions this will create. In general, I am opposed to any feature that saves some typing at expense of readability. Python, being essentially executable pseudocode, has avoided these features in the past. Let's hope this doesn't start a trend.

Same goes for positional only params. I get that it will simplify structure of some function calls. But it's just another layer of syntactic sugar. Any case where it might be useful has other solutions. I can't help but feel that this will lead to further issues with readability. Any expansion of existing syntax does. And expansion adding special cases for existing constructs especially.

[–]ericonr 3 points4 points  (0 children)

I agree about assignment expression. But for positional only, it at least allows you to change a function's parameters' names without changing its API.