Re:Data Classification: Does Python still have a need for cl...
by Liquid_Fire on Tuesday February 14, 2023 @07:18AM
(#34788300)
There is clear value in being able to pass around several pieces of information about the same thing without having to individually name them every time (less typing, you can decide to include more members at a later time, less overhead in passing by reference, users can treat it as an opaque type without needing to know the contents, etc).
[ Parent
| on HN ]
Re:Data Classification: Does Python still have a need for cl...
by thanatropism on Tuesday February 14, 2023 @09:04AM
(#34789381)
This. I look at old code I wrote and cringe at things like
def foo(...):
...
return yhat, sse, aic, bic
yhat, _, _, _ = foo(ytrue)
plot(ytrue, yhat)