Coder Social home page Coder Social logo

Comments (6)

nddrylliog avatar nddrylliog commented on August 16, 2024

Allowing them would require us to either 1) make a global change, e.g. add a '_' prefix everywhere, or 2) 'escape' only those reserved words, but that would be inconsistent behavior.

Are you fine with just disallowing them, as I did for #4?

from rock.

solson avatar solson commented on August 16, 2024

If you are already checking for all the C99 names in ooc, it wouldn't take much to just escape them instead of preventing their use. It's a step towards making ooc not C-specific

from rock.

nddrylliog avatar nddrylliog commented on August 16, 2024

Yes, but we are checking them at the parsing stage. What about calls to these functions? We'd have to check again at writing time for both FunctionDecl and FunctionCalls. And the name from C will be different from the one used in ooc, without the use of extern nor unmangled. I think it may be less clear than just disallowing them.
I'd love to have the others' opinion about this.

from rock.

solson avatar solson commented on August 16, 2024

I don't think ooc should disallow names because of a limitation of C. I'd also like to hear other opinions

from rock.

nddrylliog avatar nddrylliog commented on August 16, 2024

Closing for now, as nobody else has expressed interest in the problem. It seems non-critical for now. A nice addon maybe but maybe not worth the complexity..

from rock.

solson avatar solson commented on August 16, 2024

Fair enough.

from rock.

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.