2 ms·
thanks for that! i wasn't even aware of field tags. i can see this solution causing other problems too. there can only be one tag per field, right? what happen
by bkirkby 14y ago
thanks for that! i wasn't even aware of field tags.
i can see this solution causing other problems too. there can only be one tag per field, right? what happens when another library has a different meaning for the tag?
are we going to see a hacky standard emerge where we have multiple tags in the one field separated by semicolons (with a precursor for each tag like 'json:')?
it feels like an ugly hack to use tags this way, but i guess an ugly hack is what is needed for this right now.
i would much prefer a separate keyword to explicitly export fields. or, since we are already hacking the tag, why not have the compiler export any field with a tag called "export"?