On Tue, Apr 17, 2012 at 2:04 PM, Rob 'Commander' Pike <r@golang.org> wrote:
> That was deliberate, so the type is clear. Otherwise it's not obvious
> from the code that those are pointers.
Sure, but it's odd that we recommend people to not use the type in
their own code. This doc is setting a bad example. What if there was a
comment instead?
// ip is a *int
On Apr 17, 2012, at 3:21 PM, David Symonds wrote:
> On Tue, Apr 17, 2012 at 2:04 PM, Rob 'Commander' Pike <r@golang.org> wrote:
>
>> That was deliberate, so the type is clear. Otherwise it's not obvious
>> from the code that those are pointers.
>
> Sure, but it's odd that we recommend people to not use the type in
> their own code. This doc is setting a bad example. What if there was a
> comment instead?
> // ip is a *int
write it and we'll see how it looks.
-rob
Issue 6051044: code review 6051044: flag: update style.
(Closed)
Created 13 years ago by dsymonds
Modified 13 years ago
Reviewers:
Base URL:
Comments: 2