Re:Julia adoption keeps climbing
by legerdemain on Monday January 18, 2021 @02:32PM
(#25825578)
Thanks for the good find!
Looks like vectorizing over NamedTuples is explicitly disallowed. Probably you can still vectorize things over the keys and values separately, along with some helper functions, but it is a bit annoying. Looks like the reason was due to questions on whether iteration should be over values or pairs.
Re:Julia adoption keeps climbing
by StefanKarpinski on Monday January 18, 2021 @05:54PM
(#25827707)
Indeed, that is precisely the decision that must be made. Neither one is obviously correct. And once a decision is made and goes into a release, it cannot be unmade — we all have to live with it forever.
There may be other packages or methods for doing the other things you want. I’d think that broadcasting over a NamedTuple would iterate over the key => value pairs, but I haven’t tried it.