News for hackers. Stuff that matters.
Re:The Array Cast – A podcast about the array programming la... by slver on Thursday May 20, 2021 @02:01PM (#27224730)
Gotta say, "depends on the operation" was the most unfortunate possible answer to my question, alas :-) Maybe one day we'll figure out how to make a consistent array language ;-)
Re:The Array Cast – A podcast about the array programming la... by thrwaeasddsaf on Friday May 21, 2021 @04:34AM (#27231736)
Why is it unfortunate? It's entirely plausible that they've managed to pick the behavior that makes most sense for each operator. Different operators being different, it doesn't make sense to expect all to behave the same. And it would be unfortunate if the common use cases were complicated by having to code out the sensible behavior if the defaults were wrong.
Re:The Array Cast – A podcast about the array programming la... by klibertp on Thursday May 20, 2021 @03:27PM (#27225878)
Well, for what it's worth - and as mentioned by a sibling poster - most verbs, and certainly all arithmetic operators, obey a few simple rules for determining which behavior you'll get. I should have noted this, before I started whining about all the other verbs, which don't :D
Re:The Array Cast – A podcast about the array programming la... by ithkuil on Thursday May 20, 2021 @02:21PM (#27225026)