a...@golang.org
unread,Sep 5, 2012, 9:31:42 AM9/5/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to r...@golang.org, cam...@google.com, lucio...@gmail.com, dsym...@golang.org, golan...@googlegroups.com, re...@codereview-hr.appspotmail.com
http://codereview.appspot.com/6506073/diff/2002/2012/zen.slide#newcode162
2012/zen.slide:162: func (s Scalar) Abs() float64 {
On 2012/09/05 13:17:33, r wrote:
> making the point aside, why not return Scalar?
> also this is a weak example because in every other language abs would
just work.
> can we come up with a better one?
A good point. I'll sleep on it.
On 2012/09/05 13:17:33, r wrote:
> s/c/client/
Done.
On 2012/09/05 13:17:33, r wrote:
> return &Client{client}
> simpler and maybe better for the audience?
Done.
On 2012/09/05 13:17:33, r wrote:
> s/conversions/numeric &/
> i'm starting to get pedantic about this one
Hang on - we don't permit explicit string->[]byte conversions either.
The only implicit conversions we allow are from untyped constants, or
into/between interface values. Or am I missing something?
On 2012/09/05 13:17:33, r wrote:
> well.... what's a string? a slice? a map?
well, slices and strings have well-defined properties. maps not so
much... perhaps it could have a footnote?
On 2012/09/05 13:17:33, r wrote:
> package name space is flat too
Done.
On 2012/09/05 13:17:33, r wrote:
> s/built in/built-in/
Done.
On 2012/09/05 13:17:33, r wrote:
> export e.g.
Done.
http://codereview.appspot.com/6506073/