Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Record updates should be more polymorphic #173
If a record has field
There doesn’t seem any good reason to not let it be
added a commit
Nov 16, 2015
If anything the new behaviour should have the new syntax (and the old behaviour the old). However, I'm not sure whether we want the broken CakeML proofs to work as they used to, or whether the extra work we need to put in to make them go through is reasonable. @mn200 do you have an opinion on that?
I agree that the principle of least backwards incompatibility would call for new behaviour being realised through new syntax. However, in this case I'm fairly convinced that the new behaviour is what we should have had from the outset. I’ve also just realised that it should be possible to get the old behaviour back by overloading the update syntax to a more type-specialised form. Given this I'm even less interested in going back on this.
If you don't figure it out for yourself I hope to be able to show you how to do it later today.