News for hackers. Stuff that matters.
Re:Microfeatures I'd like to see in more languages by dataflow on Thursday January 05, 2023 @09:58PM (#34270401)
I'm fine with an array type that supports this, but not as the default. I've been bitten in the past by code that ran error-free while giving incorrect output due to this feature suddenly making the indexing valid. I'd prefer it to be opt-in somehow so that the default behavior for negatives is invalid, not silently wrong yet valid behavior.
Re:Microfeatures I'd like to see in more languages by signaru on Friday January 06, 2023 @01:24AM (#34271624)
Matlab has the opposite where your syntactically valid but mysteriously non-working code suddenly has a large array.
Re:Microfeatures I'd like to see in more languages by qsi on Friday January 06, 2023 @04:11AM (#34272627)
You can also overload end in Matlab for your custom classes as it's actually a method.