Comments (4)
Same goes with JSON conversion
from proposal-record-tuple.
Are all symbols expected to be supported? Or only reproducible ones like those using Symbol.forKey
and well known Symbols? I think non-reproducable symbols would be odd to add to records themselves personally.
Per JSON, does this need to be serialized via JSON? Symbols are a type that don't serialize already, as is the case for other types.
from proposal-record-tuple.
Discussed with @rricard and @rickbutton on Friday.
I suggest that lossless JSON roundtripping be added as a goal to this proposal, which would mean that symbols would not be allowed as keys or values in Records or as entries in Tuples.
I couldn't think of a use case for symbols on immutable data structures, so symbols don't seem like a big thing to give up.
PR: #42
from proposal-record-tuple.
What about Symbol.iterator
/iteration protocols?
from proposal-record-tuple.
Related Issues (20)
- How about classes? HOT 6
- Record keys are deduplicated, but should duplicates generate a thrown error? HOT 5
- brad4d Stage 3 Review feedback HOT 9
- Forbid hosts creating an impossible records/tuples
- Can we agree on a list of design goals for the README? HOT 2
- Upgradeable ArrayBuffers HOT 5
- add support for tuples to {Async,}Iterator.prototype.flatMap and {Async,}Iterator.from
- `Record` name conflict with Typescript HOT 1
- Why mixing immutability and tuples ? HOT 5
- `let` binding record and tuple should be writable HOT 6
- Some syntactic sugar: no need to insert # before every nested structure HOT 4
- Is this planned for ES14? HOT 6
- What about sets? HOT 14
- Record and Tuple creation should be recursive. HOT 5
- Can I use? HOT 9
- Is empty tuple / record falsy? HOT 8
- Syntax problems with VSCode HOT 2
- Does `.with()` accept array as first argument? HOT 1
- Map/Set’s SameValueZero key/value mapping HOT 2
- Looking to confirm: CanBeHeldWeakly remains false even if rec/tup includes unforgeable symbols? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from proposal-record-tuple.