That works, but requires me to take care to write the correct writer every time (the field mention changes, in particular), and also I can't return an error?
This is something that pops up for more than nul-terminated things, too, hence the general map_write instead of special-support for nul-termination (though that could be nice); this example is just what I've been struggling through tonight.
This is the way I write it at the moment:
That works, but requires me to take care to write the correct
writer
every time (the field mention changes, in particular), and also I can't return an error?I'd like to do e.g.
This is something that pops up for more than nul-terminated things, too, hence the general
map_write
instead of special-support for nul-termination (though that could be nice); this example is just what I've been struggling through tonight.