and one thing Golang has made inroads is there's only one way to do something.
and ruby is pleasurable because the interface is consistent i.e everything is an object.
and one thing Golang has made inroads is there's only one way to do something.
and ruby is pleasurable because the interface is consistent i.e everything is an object.
As another commenter pointed out [0] this feature existed since 1.4 [1].
Also, I don't understand why so many people seem to be so confused/surprised by it. I can't be 100% sure because it was a long time ago, but I think that a lot of tutorials/introductory articles mention it. Like, "Hey, did you know that Python has this cool syntaxic sugar for this thing? Fascinating!". I think that I learned about chained comparisons long before I wrote my first line of Python.
[0] https://news.ycombinator.com/item?id=42038451
[1] https://docs.python.org/release/1.4/tut/node40.html#SECTION0...
I still don't think it's that confusing. It does what you think it should if you're reading pseudocode, which is after all kind of Python's MO.