Giter VIP home page Giter VIP logo

Comments (6)

mitar avatar mitar commented on May 18, 2024

To explain the use case here: I have some user supplied values (strings) I use for checkbox values, but I also want to include checkboxes for special system values (like "all", "none", etc.). So that there is no overlap/conflict between strings, I wanted to use Symbols for system values. I could find some other way escape those strings (like a prefix), but Symbols look to me like the perfect solution available in the language for this.

from core.

dadaguai-git avatar dadaguai-git commented on May 18, 2024

In the compilation process of Vue, Symbol cannot be used as a value. During the compiler's operation, event names, directives, etc., are converted into string form.However, Symbol cannot be converted into a string type.
If the explanation is incorrect, please forgive me.

from core.

LinusBorg avatar LinusBorg commented on May 18, 2024

If the explanation is incorrect, please forgive me.

It's incorrect, unfortunately.

from core.

dadaguai-git avatar dadaguai-git commented on May 18, 2024

It's incorrect, unfortunately.

I apologize. If possible, could you also share the reason why Symbol cannot be used? I would like to learn more about it.

from core.

xw616525957 avatar xw616525957 commented on May 18, 2024

add a pull request to fix this: #10608

https://sfc-playground-2uxi6j0xm-vuejs.vercel.app/#eNp9UctOwzAQ/JWVLy1SHwc4RW2lgnoAIUAUOPmSppvi4tiWH6FVlH9n7fR1QL15Z2Z3Z9YNmxszqgOyjE1cYYXx4NAHM+NKVEZbDw1YLKGF0uoKeiTtccVVoZXz8DV//lzAFJb7aqVln7MEcHZzltS5DEgSGtJXQUqiJuNuE+2gwmNlZO6RKoCJUCZ48HuDU86Kbyx+VnrHGdTDSq9REpgGEpJ5G3CYKkIPiyErc+nOcNxI6Lgbvhb1rGkOltp2Mo5A9HPhgQ2Yd2S9FJvR1mlFh2liM7nRlRES7avxgqJxlkFiIpdLqX+fEhZtDY54SvAPvnUUKqPHm0WHtqZAJ87ndoO+oxfLF9zR+0TSFYIk9RXyHZ2WIXrsZPdBrcn2hS65fUzfK9Tmwy12HpU7hopGo7JNejp4wIcr0c92b0d3qY+rlrV/0cLIbw==

from core.

xw616525957 avatar xw616525957 commented on May 18, 2024

for #10598

https://sfc-playground-d13njj3ol-vuejs.vercel.app/#eNqlUtFOwjAU/ZWbvjASBEWfCJCg4UFj1Ij6Qn0Y4w6GXdu03YAs+3fvOocYDS8+bGnPObf3nNsWbKJ1N8+QDdjQRibRDiy6TI+5TFKtjIMCDMYd2IYuWkMJsVEptKiixSWXkZLWwdvk/nV6ASOY7dOFEgFnNcJZ+4ek/0vS95JGlIciQ9JQw2D+7gnfNvBEB4I2jMZQcAkQCjQucHuNKq7ruv4/P6/qSvqGvToPJaGNw1SL0CHtAIaJ1JmDqnrEWbTG6GOhdpxBfpaqJQoC/WGEDPyCgCYR9P53BCVujlgm+bgovlKX5bBXAZXxI7Osw5yl6cTJqruxStI9+fzUU6U6oSk8apfQ9Dgb1JOpuFAItb3zmDM0uQb3Pv/AN5asD2jxZNCiycn2gXOhWaGr6ensAXe0PpCUNROkPkE+o1UiqzzWsutMLsn2kc67vfWvLZGrFzvdOZS2CVUZrZSl19NYM7w5Ef3b7mX3ytfRc2DlJxD09hw=

from core.

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.