Comments (5)
@gsingh93 I'd be severely against it. All frameworks have combined these two words -- besides BigDecimal, BigInteger and relevant class names are used as one word.
from num.
Not that my opinion matters, but I agree with @andylamp that the method names should remain the same as they relate directly to the class names.
from num.
Why do we choose to go against the conventional Rust naming conventions in just this specific case? Because there's precedent in other language?
In Rust there's precedent for using snake case here. Look at the BinaryHeap
struct for example. It's contained in a module called binary_heap
, not binaryheap
. We're diverging from common Rust practices with this naming convention.
from num.
I agree that the general precedent in Rust is to convert CamelCase
to snake_case
. But there's also a historical precedent here, since this implementation came from the Rust standard library in the first place! (pre-1.0)
I don't feel strongly either way, but to avoid breaks I'd favor the status quo. We could change it in a future release bump, but there's no real benefit here, just a slight naming consistency.
from num.
FYI, num-bigint is in its own repo now: https://github.com/rust-num/num-bigint
But honestly, I still don't feel motivated to make such a breaking change.
from num.
Related Issues (20)
- Implement rand traits for Ratio ? HOT 2
- Conversion between openssl::bn::BigNum and num::BigInt HOT 4
- Question: Is this crate official? HOT 3
- Support a more generic binomial coefficients
- Trait size of number in bits
- Human readable (concise) output HOT 1
- Signed::is_positive and Signed::is_negative implementation/documentation is inconsistent
- Extended GCD on BigUint doesn't work HOT 2
- Yank pre-Rust 1.0.0 versions HOT 1
- Bump num-family to v1.0? HOT 6
- conversion from BigUint to Complex and vice versa HOT 1
- `rustc-serialize` is deprecated, uses deprecated Rust features HOT 2
- Invalid Complex formatting for floats (f32 and f64). HOT 3
- New API additions in num-complex 0.4.2 not configurable through num version HOT 2
- NUM
- Curiousness at 1200! (factorial)... ? HOT 2
- Feature: more comparison operations with BigInts HOT 1
- Some overflow panics found by fuzzing HOT 1
- Updating dependencies: num-traits HOT 1
- `NonZero*` types for `BigInt` and related numbers HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from num.