I think the compiler will be smart enough the manage this.  If you gave me
a few minutes, I could find other instances in the standard library where
such a thing occurs for primitive types.  To be honest, I don't want to
have to remember, "is this primitive?"  :)


2013/4/24 juliusv <notifications@github.com>

> In model/metric.go:
>
> > @@ -75,6 +75,10 @@ type Metric map[LabelName]LabelValue
> >  // time.
> >  type SampleValue float64
> >
> > +func (s SampleValue) Equal(o SampleValue) bool {
>
> I'd prefer not having a wrapper which is longer to write out than what it
> actually does (just adding another function call to the runtime)...
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/prometheus/prometheus/pull/176/files#r3933486>
> .
>