DEV Community

Cover image for Records & Tuples for React, way more than immutability

Records & Tuples for React, way more than immutability

Sebastien Lorber on August 07, 2020

Records & Tuples, a very interesting proposal, has just reached stage 2 at TC39. They bring deeply immutable data structures to JavaScript. B...
Collapse
 
madyanalj profile image
Madyan •

These and the pipeline operator will make JS so much more fun to work with. Thanks for the great post! :)

Collapse
 
stereoplegic profile image
Mike Bybee •

Seconded. Love this deep dive @sebastienlorber .

Collapse
 
sebastienlorber profile image
Sebastien Lorber •

Thanks à lot ☺️

Collapse
 
sebastienlorber profile image
Sebastien Lorber •

Thanks ☺️

Collapse
 
devdufutur profile image
Rudy Nappée • • Edited

Great topic, you dug a lot ! And great news, I didn't knew records were on the ECMA specs pipe. JS's in good way to become the ultimate multiparadigm language !

Collapse
 
sebastienlorber profile image
Sebastien Lorber •

Yes, just hope it lands now 😝

Collapse
 
devdufutur profile image
Rudy Nappée •

Can't wait !

Collapse
 
djamaile profile image
Djamaile •

Very detailed article! Loved it.

Collapse
 
sebastienlorber profile image
Sebastien Lorber •

Thanks 🤗

Collapse
 
stereoplegic profile image
Mike Bybee •

I love Immer, but I love even more the prospect of making it unnecessary.

Collapse
 
sebastienlorber profile image
Sebastien Lorber •

Yes 🤗 that would be nice

Collapse
 
briansanteliz profile image
Brian Santeliz •

Hey Sebastien, Great post ;)

Collapse
 
sebastienlorber profile image
Sebastien Lorber •

Thanks 😉

Collapse
 
devdufutur profile image
Rudy Nappée • • Edited

Btw, do you know how it'll be transpiled/polyfilled by babel ? Regular freezed objects?

Collapse
 
sebastienlorber profile image
Sebastien Lorber •

It uses an interning technique to provide the === properties, it's documented on the proposal