Giter Club home page Giter Club logo

Comments (11)

vickychijwani avatar vickychijwani commented on April 28, 2024

For what it's worth, this little naming issue is stopping me from using the library.

from underscore-java.

javadev avatar javadev commented on April 28, 2024

Hi,

I prepared a pull request to rename _ with $. :)

from underscore-java.

vickychijwani avatar vickychijwani commented on April 28, 2024

I'm sorry, I hadn't done my research on whether $ is a safe name to use. From JLS §3.8. Identifiers:

The "Java letters" include uppercase and lowercase ASCII Latin letters A-Z (\u0041-\u005a), and a-z (\u0061-\u007a), and, for historical reasons, the ASCII underscore (_, or \u005f) and dollar sign ($, or \u0024). The $ sign should be used only in mechanically generated source code or, rarely, to access pre-existing names on legacy systems.

Really sorry to suggest another troublesome name. Do you think there's another name you could use?

from underscore-java.

javadev avatar javadev commented on April 28, 2024

If both names _ and $ aren't recomended we can leave existing name _, :-)

from underscore-java.

vickychijwani avatar vickychijwani commented on April 28, 2024

In that case I think $ is the lesser of the 2 evils. $ can still be used for "legacy systems", but _ might become a reserved keyword soon, which is much worse. What do you think? :)

from underscore-java.

vickychijwani avatar vickychijwani commented on April 28, 2024

I'm wondering, is there a way to let users of the library configure what name to use? I'm not a Java expert so I don't know how to do it, but maybe you do.

from underscore-java.

javadev avatar javadev commented on April 28, 2024

OK. $ is more safe than _. Let's use $. In java we may use classifier attribute for versions of the modules.

https://maven.apache.org/pom.html

It may be one more version with underscore if needed,

from underscore-java.

javadev avatar javadev commented on April 28, 2024

Implemented with pull requests #8 and #9.

from underscore-java.

vickychijwani avatar vickychijwani commented on April 28, 2024

Great, thanks for resolving this! How do I use the classifier attribute?

Also, thanks for creating this project, the open-source community appreciates it! :)

from underscore-java.

javadev avatar javadev commented on April 28, 2024

Classifier attribute is not supported for now, but may be added later to support library with _ class name.

from underscore-java.

javadev avatar javadev commented on April 28, 2024

$ was renamed to Underscore and U.

from underscore-java.

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.