Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upTracking issue for `float_extras` stabilization #27752
Comments
aturon
added
T-libs
B-unstable
labels
Aug 12, 2015
This comment has been minimized.
This comment has been minimized.
|
For a CBOR serializer crate I used the The unstable methods of
The unstable methods of
I wonder why The
I don't know what should happen with
|
This comment has been minimized.
This comment has been minimized.
|
@pyfisch Could you elaborate what you're using |
This comment has been minimized.
This comment has been minimized.
|
@rkruppe: I use them to decode half floats to f32: https://github.com/pyfisch/cbor/blob/master/src/de.rs#L173 |
This comment has been minimized.
This comment has been minimized.
|
Oh, so you're also using it in lieu of a proper API for disassembling and reassembling IEEE 754 floats. As I said before, I think |
This comment has been minimized.
This comment has been minimized.
Lisoph
commented
Dec 28, 2015
|
Personally, I haven't written a single program, in which I wouldn't have needed the radian / degree conversion methods. Seeing the f32 versions being stabilized would be a bliss. |
This comment has been minimized.
This comment has been minimized.
|
@Lisoph D'oh! That seems to just be an oversight; the ones on |
This comment has been minimized.
This comment has been minimized.
Lisoph
commented
Jan 1, 2016
This comment has been minimized.
This comment has been minimized.
|
@Lisoph That's fine -- if you'd like, you can also submit a PR to stabilize it. If not, I or someone else from the libs team will take care of it soon! |
sfackler
added
the
I-nominated
label
Jun 6, 2016
This comment has been minimized.
This comment has been minimized.
|
+1 to any resolution to these. Don't care much at this point about the naming question or the exact functionality. Let's just decide. |
This comment has been minimized.
This comment has been minimized.
|
If the choice is between stabilizing or deprecating now, I would plead for deprecation. The current interface is sub-par, designing a good one is hard, this functionality is relatively niche and really doesn't need to be in std — it can easily be implemented with |
This comment has been minimized.
This comment has been minimized.
|
The libs team was unfortunately a little late on stabilizations this cycle, but we're thinking of probably doing a backport of stabilizations partway through the beta cycle. We were somewhat ambivalent if I remember correctly on whether to stabilize or deprecate these functions. The functionality is likely needed by someone, but the names are unfortunately sub-par wrt the rest of the module. |
alexcrichton
added
final-comment-period
and removed
I-nominated
labels
Jun 20, 2016
This comment has been minimized.
This comment has been minimized.
|
I think they should be deprecated since they are not used often enough. Maybe some will be reintroduced in the future with better names. |
This comment has been minimized.
This comment has been minimized.
|
The libs team discussed this issue during triage yesterday and the decision was to deprecate. We realize that the FCP for this issue was pretty short, however, so please comment with any objections you might have! We're very willing to backport an un-deprecate for the few APIs we have this cycle. |
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Jun 28, 2016
alexcrichton
referenced this issue
Jun 28, 2016
Merged
std: Stabilize APIs for the 1.11.0 release #34530
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Jun 28, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Jun 28, 2016
bors
added a commit
that referenced
this issue
Jul 2, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Jul 2, 2016
bors
added a commit
that referenced
this issue
Jul 2, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Jul 3, 2016
bors
added a commit
that referenced
this issue
Jul 3, 2016
bors
closed this
in
#34530
Jul 4, 2016
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
lilith
commented
Dec 17, 2016
|
next_after is extremely useful for unit testing with floats... |
aturon commentedAug 12, 2015
There are a number of floating point methods that are reexported from cmath, without a strong naming convention on the Rust side, or a clear rationale for which methods are included and which are not.
Ideally, someone who works with floating point, and these methods in particular, could offer advice/an RFC laying out a good vision for these methods.