michaelhugi Posted May 30, 2021 Share Posted May 30, 2021 Hello I'm writing an open-source GDTF-Parser for Rust. For me it's not 100% clear which attributes are optional and which are required. On some attributes in the description is written optional so I suggested if there is no optional in the comment field, it's required. During testing I had a crash because on Page 35 ChannelFunction.ModeMaster is not defined as optional but in some GDTF-Files from GDTF-Share there is nothing there... Did I miss something in the SPEC? Do I have to expect any attribute to be not present? This would be bad because there is no 'null' concept in Rust but only Optionals that have to be declared and then unwrapped every time they are used... I would suggest for the next Version of the specs to add a column to every attribute if it's optional or not. Link to comment Share on other sites More sharing options...
Petr Vanek Posted June 3, 2021 Share Posted June 3, 2021 >i'm writing an open-source GDTF-Parser for Rust Great! >Page 35 ChannelFunction.ModeMaster is not defined as optional but in some GDTF-Files from GDTF-Share there is nothing there... Thank you for the report. If you encounter more unclear places, please report to https://github.com/mvrdevelopment/spec/issues thank you Petr 1 Link to comment Share on other sites More sharing options...
Petr Vanek Posted June 15, 2021 Share Posted June 15, 2021 Thank you for all the reports, appreciated! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now