News for hackers. Stuff that matters.
Re:Copying data is wasteful, mutating data is dangerous by UncleEntity on Thursday January 09, 2020 @04:55PM (#22006334)
The pythonic way would be to have sort() and sorted() which either sort in place or return a sorted copy. Best of both worlds.
Re:Copying data is wasteful, mutating data is dangerous by ajuc on Thursday January 09, 2020 @07:01PM (#22007211)
Command Query Separation is a very good general idea in programming that should be followed more often. Sadly it went out of fashion in 90s when everybody got hyped about OOP.