I would like to start changing the existing documentation to use this, and in addition, make an automated sweep of the entire code base to update to the new syntax.
I'm not sure it's a good idea. There's some value in distinguishing between an actual right-hand-side assignment and the resulting value of an expression (where expression includes right-hand-side assignments :-).
Also, as far as I understand, right-hand-side assignment is still experimental (but maybe I got that wrong).
I think we should wait that RHS assignment is no longer experimental.
As I see it, it might get similar backlash as the pipeline operator and might still be removed (personally I don't like RHS assignment, I find it confusing and less readable).
I think we should wait that RHS assignment is no longer experimental.
As I see it, it might get similar backlash as the pipeline operator and might still be removed (personally I don't like RHS assignment, I find it confusing and less readable).
I agree and I’m not a big fan either. It seems to me that for some time there’s been accepting and immediately merging some changes that aren’t necessary instead of focusing on more important stuff.
Oh okay, I thought it was a sure thing at this point - where is the experimental nature of it being tracked?
It's mentioned in NEWS.md. Both rightward assignment and endless method definition are currently considered experimental, and I think we shouldn't have any internal code or documentation use them until that is no longer the case.
I'm also not a big fan, but even if it becomes official it's not a good idea documentation-wise as it currently distinguishes cases where the return is self; there's no way to do this with the right assignment operator.