GithubHelp home page GithubHelp logo

Add vendor prefixes: rGuiName about raygui HOT 3 CLOSED

raysan5 avatar raysan5 commented on May 22, 2024
Add vendor prefixes: rGuiName

from raygui.

Comments (3)

raysan5 avatar raysan5 commented on May 22, 2024 1

No plans to add vendor prefixes for the upcoming v2.0. Just closing this issue for now.

from raygui.

raysan5 avatar raysan5 commented on May 22, 2024

Hi @inlife! Glad you like this little project! :)

Personally I don't like vendor prefixes, I avoided it on raylib and also would like to avoid it on raygui... but I'm concerned about the possible name collisions with other libraries (already dealt with that trying to include the infamous windows.h in raylib...).

In any case, I need to think about that... already considered using a rGuiName() in a similar way to raylib's rlgl module. As you said, it's a big change to the API (despite no many base-codes are using it, only some personal tools...).

EDIT: By the way, I'm following your librg library, considering it as a candidate library to add network functionality to raylib.

from raygui.

inlife avatar inlife commented on May 22, 2024

Well yea, however I think, when you are using something like raylib, you are using it not as a library but more like as a framework. Something bigger, something that defines global rules for your application, where you, as developer, is supposed just to follow them.

However that still won't save you from having name collisions with something having those simple method names. Easiest way would be to use namespaces, however as we know, C doesnt have those badboys :D

In any case, I need to think about that... already considered using a rGuiName() in a similar way

That is something what is definitely worth thinking about. And thinking quite a lot, I'd say. This is a major design decision, which in theory can be applied not only to the raygui, but for raylib and even raylib lua.

It's something that not just changes name methods, however makes a paradigm shift in your brain I suppose.

Anyway, for now I just suggest think about it, at least for a few weeks/months. That should give you, and others, answer "is this really worth it".

By the way, I'm following your librg library, considering it as a candidate library to add network functionality to raylib.

Oh that is so nice to hear. Thank you! I would also suggest looking into more low-level ENet library, we are using at as a backend in the librg.

from raygui.

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.