Why are Sink
s responsible for maintaining statistics, when isn't part of the Sink
trait definition?
#2271
-
I'm trying to understand how the printers are used, and I'm looking at But |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
When it comes to generics, I never ask "why not." I always ask "why do it in the first place." Stats don't seem like a fundamental part of "sink" to me. It's true that all of the printers provide stats, but note that not all Sorry if this isn't a fulfilling answer, but it really is that simple: IMO you have the burden of proof flipped. :-) |
Beta Was this translation helpful? Give feedback.
When it comes to generics, I never ask "why not." I always ask "why do it in the first place."
Stats don't seem like a fundamental part of "sink" to me. It's true that all of the printers provide stats, but note that not all
Sink
impls provide stats.Sorry if this isn't a fulfilling answer, but it really is that simple: IMO you have the burden of proof flipped. :-)