Code Monkey home page Code Monkey logo

Comments (9)

kangax avatar kangax commented on July 28, 2024

what about it?

from compat-table.

Yaffle avatar Yaffle commented on July 28, 2024

I think, Traceur does not provide Map, Set and WeakMap support

from compat-table.

kangax avatar kangax commented on July 28, 2024

@arv could you shed some light on this?

from compat-table.

arv avatar arv commented on July 28, 2024

Traceur does not provide any of these. Traceur is mostly focusing on new syntax and semantics and not polyfills. Existing polyfills ashtray work great with Traceur. No need to duplicate them.

from compat-table.

Yaffle avatar Yaffle commented on July 28, 2024

@arv, but existing polyfills for Map and Set can not provide O(1) performance for object as keys, seems

from compat-table.

arv avatar arv commented on July 28, 2024

If you can mutate object keys you can get O(1) which is the standard solution.

from compat-table.

Yaffle avatar Yaffle commented on July 28, 2024

@arv, ok, what about WeakMap ?

from compat-table.

arv avatar arv commented on July 28, 2024

Where did that "ashtray" come from? Stupid Android auto complete!

@Yaffle WeakMaps cannot be fully emulated. The closest thing is to store the association as an expando on the key itself. Once again this require extensible keys.

Here is one:

https://github.com/Polymer/WeakMap

This is not complete but it is very small and it has been highly optimized for speed.

from compat-table.

Yaffle avatar Yaffle commented on July 28, 2024

anyway,
Map, Set, WeakMap should be setted as not supported for "Traceur" column

from compat-table.

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.