If you were to redesign it now, would you name the method Handle?

I’ve got a similar interface in my project and I was just wondering what the 
most idiomatic method name would be.
> On Jul 12, 2016, at 4:13 PM, Ian Lance Taylor <i...@golang.org> wrote:
> 
> On Tue, Jul 12, 2016 at 12:10 PM, Anmol Sethi <an...@aubble.com> wrote:
>> Why is http.Handler’s method name ServeHTTP and not Handle? Handle seems to 
>> be more idiomatic.
> 
> I doubt there is any deep reason.  ServeHTTP dates back to when the
> Handler interface was introduced before the public release of Go
> (https://github.com/golang/go/commit/e73acc1b35f3490f3d800b4bf49da79630e808fc).
> It predates many of the idioms we've adopted over time.
> 
> Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to