Closed adienes closed 7 months ago
I'm more surprised that map(value, g)
works here, actually. The following method is in OnlineStatsBase, so OnlineStat
s opt out of the broadcast stuff:
Broadcast.broadcastable(o::OnlineStat) = Ref(o)
According to git blame, I apparently accepted a PR from someone 4 years ago (!) that added it. I don't know the reason, but there must have been one for adding it. At this point I think it's too breaking to remove it.
ok, thanks for the explanation (also I just realized I can use values
anyway)
I suspect map
works because iterate
works. And I suppose it wouldn't be the first object that iterates differently from broadcasting, e.g. String
this was a little unexpected to me, as ordinarily
foo.(x)
is equivalent tomap(foo, x)