Not really: https://play.golang.org/p/1-31t3prci ?






[image: --]
Gregory Golberg
[image: http://]about.me/gregorygolberg
<http://about.me/gregorygolberg?promo=email_sig>


On Tue, Jul 5, 2016 at 9:19 PM, Matt Harden <matt.har...@gmail.com> wrote:

> To distinguish it from main.(*T).Bar, which is a different thing (the
> method without receiver already supplied).
>
> On Tue, Jul 5, 2016 at 9:04 PM Gregory Golberg <deb...@gmail.com> wrote:
>
>> Yes, it is noted - I specifically made this example like so. But why?
>>
>> If I were to parse the Name() string I could still figure out that this
>> is a method - because main.(*T).Bar-fm shows that it's on type T.
>>
>> So what's the point of the suffix?
>>
>> On Tue, Jul 5, 2016 at 8:20 PM, Matt Harden <matt.har...@gmail.com>
>> wrote:
>>
>>> I'm not sure what it stands for (function from method?). But note that
>>> this is a Method Value https://golang.org/ref/spec#Method_values, so
>>> it's distinct from the method itself, which doesn't have a receiver already
>>> supplied.
>>>
>>> https://play.golang.org/p/P2TELvh1Ho
>>>
>>> On Tue, Jul 5, 2016 at 7:38 PM Gregory Golberg <deb...@gmail.com> wrote:
>>>
>>>> Hi all,
>>>>
>>>> Consider this example: https://play.golang.org/p/uy6rPFu6Z9
>>>>
>>>> Which prints
>>>>
>>>> main.Foo
>>>> main.(*T).Bar-fm
>>>>
>>>> What does -fm mean?
>>>>
>>>> -g
>>>>
>>>> --
>>>> 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.

Reply via email to