DEV Community

Discussion on: Thought Experiment: Namespaced record fields

Collapse
 
rwoodnz profile image
Richard Wood

This is a big deal as a small bit of time wasted by everyone working around it all the time means a lot of wasted time overall.

How about just cut through all the complexity and allow:
{ person | pet.name = "Fido" } }

It is the person record we are replicating, so that has to be on the left. Pet.name tells us exactly where in the record we are making a change so that is all we need on the right.