Skip to content

Conversation

@lo48576
Copy link
Contributor

@lo48576 lo48576 commented May 13, 2017

Rust's RFC 0430 about naming conventions says:

In CamelCase, acronyms count as one word: use Uuid rather than UUID.

Standard library follows this rule and uses Nan (see std::num::FpCategory::Nan), so this crate had better use Nan.

@lo48576 lo48576 force-pushed the nan-naming-convention branch from e194501 to 8a66519 Compare June 24, 2017 14:21
[Rust's RFC 0430 about naming
conventions](https://github.com/rust-lang/rfcs/blob/master/text/0430-finalizing-naming-conventions.md#fine-points)
says:

> In `CamelCase`, acronyms count as one word: use `Uuid` rather than `UUID`.

Standard library follows this rule and uses `Nan` (see
`std::num::FpCategory::Nan`), so this crate had better use `Nan`.
@lo48576 lo48576 force-pushed the nan-naming-convention branch from 8a66519 to 4c52f74 Compare June 24, 2017 14:25
@lo48576
Copy link
Contributor Author

lo48576 commented Jun 24, 2017

Resolved conflicts and rebased onto master (0.5.0).

@kennytm
Copy link

kennytm commented Jul 12, 2017

I suggest you add some #[deprecated] type alias so it won't break downstream crates immediately even if they don't update the source code.

#[deprecated(since = "0.6.0", note = "renamed to NotNan")]
pub type NotNaN<T> = NotNan<T>;
// etc.

Takuma YOSHIOKA added 2 commits July 13, 2017 15:48
For compatilibity reason, old names should be available for a while.
Copied tests from master branch and added `allow(deprecated)`.
@lo48576
Copy link
Contributor Author

lo48576 commented Jul 13, 2017

Restored NotNaN and FloatisNaN as deprecated, and also restored tests for them.
These changes would resolve the compatibility issue.

@mbrubeck
Copy link
Collaborator

mbrubeck commented Jun 6, 2018

I published a (hopefully temporary) fork that includes this change: https://crates.io/crates/new-ordered-float

@mbrubeck mbrubeck merged commit 9675e56 into reem:master Sep 7, 2018
@lo48576 lo48576 deleted the nan-naming-convention branch September 8, 2018 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants