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

Issue 101750048: code review 101750048: math: implement Nextafter32 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 11 months ago by gri
Modified:
9 years, 10 months ago
Reviewers:
rsc, adonovan
CC:
adonovan, golang-codereviews
Visibility:
Public.

Description

math: implement Nextafter32 Provide Nextafter64 as alias to Nextafter. For submission after the 1.3 release. Fixes issue 8117.

Patch Set 1 #

Patch Set 2 : diff -r 900650e66b4f https://code.google.com/p/go/ #

Patch Set 3 : diff -r 900650e66b4f https://code.google.com/p/go/ #

Patch Set 4 : diff -r 900650e66b4f https://code.google.com/p/go/ #

Total comments: 6

Patch Set 5 : diff -r f153208c0a0e https://code.google.com/p/go/ #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -18 lines) Patch
M src/pkg/math/all_test.go View 1 2 5 chunks +68 lines, -11 lines 0 comments Download
M src/pkg/math/nextafter.go View 1 2 chunks +33 lines, -7 lines 1 comment Download

Messages

Total messages: 9
gri
Hello adonovan@google.com (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
9 years, 11 months ago (2014-05-28 21:33:35 UTC) #1
adonovan
https://codereview.appspot.com/101750048/diff/60001/src/pkg/math/all_test.go File src/pkg/math/all_test.go (right): https://codereview.appspot.com/101750048/diff/60001/src/pkg/math/all_test.go#newcode460 src/pkg/math/all_test.go:460: 4.979012489318848e+00, I assume these numbers were generated by a ...
9 years, 11 months ago (2014-05-28 21:42:47 UTC) #2
gri
https://codereview.appspot.com/101750048/diff/60001/src/pkg/math/all_test.go File src/pkg/math/all_test.go (right): https://codereview.appspot.com/101750048/diff/60001/src/pkg/math/all_test.go#newcode460 src/pkg/math/all_test.go:460: 4.979012489318848e+00, On 2014/05/28 21:42:47, adonovan wrote: > I assume ...
9 years, 11 months ago (2014-05-29 16:09:25 UTC) #3
adonovan
On 2014/05/29 16:09:25, gri wrote: > https://codereview.appspot.com/101750048/diff/60001/src/pkg/math/all_test.go > File src/pkg/math/all_test.go (right): > > https://codereview.appspot.com/101750048/diff/60001/src/pkg/math/all_test.go#newcode460 > ...
9 years, 11 months ago (2014-05-29 18:08:16 UTC) #4
gri
*** Submitted as https://code.google.com/p/go/source/detail?r=9f902e837883 *** math: implement Nextafter32 Provide Nextafter64 as alias to Nextafter. For ...
9 years, 10 months ago (2014-06-11 16:09:40 UTC) #5
rsc
https://codereview.appspot.com/101750048/diff/80001/src/pkg/math/nextafter.go File src/pkg/math/nextafter.go (right): https://codereview.appspot.com/101750048/diff/80001/src/pkg/math/nextafter.go#newcode49 src/pkg/math/nextafter.go:49: // Nextafter is the same as Nextafter64. Why not ...
9 years, 10 months ago (2014-06-11 18:21:59 UTC) #6
adonovan
This question was asked and answered in the review: ---- quoting gri ---- On 2014/05/28 ...
9 years, 10 months ago (2014-06-11 18:24:15 UTC) #7
rsc
Please err on the side of not causing and not causing duplication. If we were ...
9 years, 10 months ago (2014-06-11 18:27:16 UTC) #8
gri
9 years, 10 months ago (2014-06-11 18:32:14 UTC) #9
Fair enough. As I said before, I am not feeling strongly, but personally I
prefer to start with clean (naming) layers, even at the cost of duplicating
names
That said, I'll remove it.
- gri


On Wed, Jun 11, 2014 at 11:27 AM, Russ Cox <rsc@golang.org> wrote:

> Please err on the side of not causing and not causing duplication. If we
> were starting from scratch then Nextafter32 and Nextafter64 would be fine.
> But we're not starting from scratch, and renaming+deprecating Nextafter to
> Nextafter64 causes work for users with no benefit, and perhaps worse, it
> means that people who follow the directions to create Go 1.4 code that
> doesn't compile in Go 1.3 and earlier.
>
> General rule: if there is functionality under a given name, keep it there,
> even if - given a clean slate - you'd pick a different name.
>
> Russ
>
>
Sign in to reply to this message.

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