You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My prior plan was to rely on an ad hoc, use-case defined waterfall of element string "recognizers". However, that's an unformalized, error-prone approach, and can lead to erroneous assignment of types.
Of course, this "solution" may well be insufficient. For example, if the auto-type waterfall has date, dna, then all we did was just formalized the weakness that led to the problem referenced above.
Further, how could we avoid the bloat associated with all this formalism up front? This is reminiscent of the old Direct3D .x file format, or the XML boilerplate bloat associated with many applications.
An alternative is to eliminate the concept of a waterfall altogether (or perhaps that's a recommendation?), and instead, require explicit types everywhere, and alleviate the pain with aliases.
The text was updated successfully, but these errors were encountered:
For maximum JSON compatibility, would there be standard implicit aliases? Something like aliases: { null: (null:null), n: (real:), true: (bool:true), false: (bool:false) }.
Also note that aliases would include different kinds, such as types, values, and possibly keys.
Also, the alias structure might allow implicit typing for specific values. For example:
values: { true: bool, false: bool }
hollasch
changed the title
Surrender to the dark side: formalize metadata structure
Surrender to the dark side: formalize metadata structure?
Apr 6, 2021
My prior plan was to rely on an ad hoc, use-case defined waterfall of element string "recognizers". However, that's an unformalized, error-prone approach, and can lead to erroneous assignment of types.
This recently was in the news, as some DNA sequences look like dates to Excel when importing CSVs: https://www.theverge.com/2020/8/6/21355674/human-genes-rename-microsoft-excel-misreading-dates
One could easily imagine similar cases in a world of unlimited types.
I have been very resistant to the idea of formalizing a metadata logic in LSON, but I the above example forces me to throw in the towel.
I'll need to think about this much more, but here's a representative sketch:
Of course, this "solution" may well be insufficient. For example, if the auto-type waterfall has
date, dna
, then all we did was just formalized the weakness that led to the problem referenced above.Further, how could we avoid the bloat associated with all this formalism up front? This is reminiscent of the old Direct3D .x file format, or the XML boilerplate bloat associated with many applications.
An alternative is to eliminate the concept of a waterfall altogether (or perhaps that's a recommendation?), and instead, require explicit types everywhere, and alleviate the pain with aliases.
The text was updated successfully, but these errors were encountered: