Giter Club home page Giter Club logo

Comments (2)

acutmore avatar acutmore commented on June 8, 2024 1

Hi @bathos yes that's correct. It was mostly discussed in relation to when the proposal had the notion of Box as a way to reference an object from a R/T here #233, with https://github.com/tc39/proposal-symbols-as-weakmap-keys being the replacement for how to 'reference' an object from the R/T the same conversation still applies - with 'box' replaced with 'unique symbol'.

As mentioned in that thread, the capability exists without direct support. So it would be a connivence, rather than providing a new capability. To do this in userland, the R/T is walked to extract all the weakly holdable symbols and then a trie of WeakMaps is created to link this entire set of symbols to the R/T which is placed in a regular Map associated to the final WeakMap in the chain.

from proposal-record-tuple.

bathos avatar bathos commented on June 8, 2024

Thanks! I didn’t know what to make of the Box discussions when I was looking for prior info about this, so the context about how the notion ended up evolving is helpful.

I realized it wouldn’t constitute a new fundamental capability — I’ve done what were roughly “tuples w/ object members” in userland before myself, though I doubt as elegantly or efficiently as someone else might have. Even so I think composite key utils/syntax/whatever would be pretty valuable language-level features. (That’s all unrelated to this proposal of course, though).

from proposal-record-tuple.

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.