Re: "Entry: NA" in debian/upstream/metadata
Hi Charles,
On 2021-03-04 07:06, Charles Plessy wrote:
> how about YAML's null value for entries for which it was confirmed that
> the information does not exist ?
This was my initial idea. I do not know much about YAML, but at least
Perl YAML implementations see no difference between different ways of
specifying undefined/null in YAML. I tried both YAML and YAML::XS
modules, and both seemingly do the same:
perl -MYAML -MData::Dumper -we 'print Dumper Load($ARGV[0])' 'field: ~'
$VAR1 = {
'field' => undef
};
perl -MYAML -MData::Dumper -we 'print Dumper Load($ARGV[0])' 'field:'
$VAR1 = {
'field' => undef
};
perl -MYAML -MData::Dumper -we 'print Dumper Load($ARGV[0])' 'field: !!null'
$VAR1 = {
'field' => undef
};
Maybe I am doing something wrong, but currently I am under impression
that YAML does not have enough flavors of "unknown" to cater our needs.
Best,
Andrius
Reply to: