The semantic difference is that Type.Method takes the receiver as its first argument, whereas value.Method does not (the value is part of the closure context, which is why creating a function in this way incurs an allocation).
On 15 Jul 2016 07:16, "Gregory Golberg" <deb...@gmail.com> wrote: > Ah, Jakob, thanks - did not see this before. > > What's the semantic difference though, I'm not getting it. > > On Wednesday, July 6, 2016 at 4:24:54 AM UTC-7, Jakob Borg wrote: >> >> 2016-07-06 7:10 GMT+02:00 Gregory Golberg <gri...@alum.mit.edu>: >> >>> Not really: https://play.golang.org/p/1-31t3prci ? >>> <http://about.me/gregorygolberg?promo=email_sig> >>> >> >> This is the difference Matt is referring to: >> >> https://play.golang.org/p/MO_fEbZkeQ >> >> //jb >> > -- > 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. > -- 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.