Skip to content

Write-through for tables #209

Answered by jamescourtney
cristi16 asked this question in Q&A
Discussion options

You must be logged in to vote

It's something that I have thought about. The short version is: write through for tables has some weird edge cases that structs don't, which can lead to surprising and nonobvious outcomes. You probably know this, but the primary difference between structs and tables is that all struct fields are mandatory and are always written, while table fields (even primitives) are skipped if they match their default value.

There is no technical reason that it won't work. However, one of the things I really think about when adding something is: "Would this surprise me if I didn't know how this worked under the hood?" and "Can I imagine a way to use this in which I might be surprised?"

Here's an exampl…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by jamescourtney
Comment options

You must be logged in to vote
1 reply
@jamescourtney
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants