4 ms·
Records and Tuples were scrapped, but as this is JavaScript, there is a user-land implementation available here: https://github.com/seanmorris/libtuple https://
by lhnz 10mo ago
Records and Tuples were scrapped, but as this is JavaScript, there is a user-land implementation available here: https://github.com/seanmorris/libtuple https://github.com/seanmorris/libtuple
- jazzypants 10mo agoUserland implementations are never as performant as native implementations. That's the whole point of trying to add immutability to the standard.
- agos 10mo agoeven when performance might not be an issue or an objective, there are other concerns about an user land implementation: lack of syntax is a bummer, and lack of support in the ecosystem is the other giant one - for example, can I use this as props for a React component?