Code Monkey home page Code Monkey logo

Comments (5)

andylamp avatar andylamp commented on May 28, 2024

@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.

mandeep avatar mandeep commented on May 28, 2024

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.

gsingh93 avatar gsingh93 commented on May 28, 2024

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.

cuviper avatar cuviper commented on May 28, 2024

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.

cuviper avatar cuviper commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.