Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(7)

Issue 296042: code review 296042: Clarify that conversions to complex are OK. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years ago by iant
Modified:
15 years ago
Reviewers:
CC:
r, golang-dev
Visibility:
Public.

Description

Clarify that conversions to complex are OK.

Patch Set 1 #

Patch Set 2 : code review 296042: Clarify that conversions to complex are OK. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M doc/go_spec.html View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13
iant
Hello r (cc: golang-dev@googlegroups.com), I'd like you to review this change.
15 years ago (2010-03-08 21:21:25 UTC) #1
r2
LGTM On Mar 8, 2010, at 1:21 PM, iant@golang.org wrote: > Reviewers: r, > > ...
15 years ago (2010-03-08 21:24:16 UTC) #2
iant
*** Submitted as http://code.google.com/p/go/source/detail?r=fc0c03598d5a *** Clarify that conversions to complex are OK. R=r CC=golang-dev http://codereview.appspot.com/296042
15 years ago (2010-03-08 21:45:11 UTC) #3
rsc
This isn't true. var f float64 var c = complex(f) // not allowed Russ
15 years ago (2010-03-08 21:50:55 UTC) #4
iant2
Russ Cox <rsc@golang.org> writes: > This isn't true. > > var f float64 > var ...
15 years ago (2010-03-08 22:08:59 UTC) #5
rsc
> It works with the current 8g, a similar idea is explicitly permitted > with ...
15 years ago (2010-03-08 22:12:34 UTC) #6
gri1
The early proposals did disallow it. I think it is confusing. For instance, it would ...
15 years ago (2010-03-09 00:00:21 UTC) #7
rsc
I think it would be very confusing for complex(x,y) to have type complex128, say. Ken ...
15 years ago (2010-03-09 00:02:09 UTC) #8
gri1
What I meant was that complexXX works as follows if it has 2 arguments: complex(x, ...
15 years ago (2010-03-09 00:13:38 UTC) #9
rsc
On Mon, Mar 8, 2010 at 16:13, Robert Griesemer <gri@google.com> wrote: > What I meant ...
15 years ago (2010-03-09 00:15:43 UTC) #10
rog
i dislike the spelling of "cmplx" - although i haven't got a better suggestion. i ...
15 years ago (2010-03-09 11:11:09 UTC) #11
r2
On Mar 9, 2010, at 3:11 AM, roger peppe wrote: > i dislike the spelling ...
15 years ago (2010-03-09 17:36:20 UTC) #12
rog
15 years ago (2010-03-09 18:11:47 UTC) #13
On 9 March 2010 17:36, Rob 'Commander' Pike <r@google.com> wrote:
>
> On Mar 9, 2010, at 3:11 AM, roger peppe wrote:
>
>> i dislike the spelling of "cmplx" - although i haven't
>> got a better suggestion. i presume "mkcomplex"
>> would be considered too long?
>
> Where does 'mk' come from?  Seems just as ugly to me, and longer, not to
> justify 'cmplx' as harmonious.

i agree "mkcomplex" is just as ugly. i was trying to come up with a name
that reflected to some degree its difference from "complex"
the type name: that it makes a complex number of appropriate
type, rather than casting to a particular type.

>  A better name would be welcome.

hmm.
complexv ?

the v standing for "value".
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b