Giter VIP home page Giter VIP logo

Comments (6)

chriskrycho avatar chriskrycho commented on May 28, 2024 1

Wellllll, actually we might want to go the other direction. @dfreeman discovered some non-trivial issues with allowing div and friends as legal names in the context of what Glint needs to do, and notably Svelte and Vue have restrictions on names for the same reasons. I think Dan was planning to write up a related RFC; I suspect he would also be up for supporting/helping Bert doing the same.

from rfcs.

dfreeman avatar dfreeman commented on May 28, 2024 1

@bertdeblock happy to sync with you out-of-band (via Discord or whatever works for you) to work together on figuring out how this relates to the issues Chris mentioned above and whether it makes sense to join forces 🙂

from rfcs.

jelhan avatar jelhan commented on May 28, 2024

The current naming convention is also not fully enforced. You can set an argument starting with an underscore using {{component _foo="bar"}} helper. You can not access it using the {{@_foo}}. But you can access it using {{this.args._foo}}`. 🤯 Using this in production at Ember Bootstrap. 🙈

from rfcs.

mydea avatar mydea commented on May 28, 2024

Both cases make sense to me, esp. the capital-case component name (@Wrapper={{component 'my-component'}}) is something I've personally ran into multiple times.

from rfcs.

chriskrycho avatar chriskrycho commented on May 28, 2024

This is also directly related to the fact that there is no syntactical restriction on component invocation in strict mode templates—basically by definition: if the name from the surrounding JS scope is available to invoke, then any legitimate JS identifier needs to be invokable. That means that <foo /> can be a legal component invocation, and passing @Foo={{bar}} should also.

from rfcs.

wagenet avatar wagenet commented on May 28, 2024

@chriskrycho what would an RFC for this look like? Are you able to give any pointers to @bertdeblock ?

from rfcs.

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.