Subject of the issue
Just wondering why the return type of put is T&? (same for get).
I don't really see why these functions return the value we feed them with.
I wonder if it wouldn't make more sense to have put return the next writable location, kind of like putString.
That way, it would become possible to save structs one after another, by using the returned value as the next address.
Perhaps it would also make sense if get just returned void.
What do you guys think?
Your workbench
Steps to reproduce
Not relevant.
Expected behavior
Not relevant.
Actual behavior
Not relevant.
Subject of the issue
Just wondering why the return type of
putisT&? (same forget).I don't really see why these functions return the value we feed them with.
I wonder if it wouldn't make more sense to have
putreturn the next writable location, kind of likeputString.That way, it would become possible to save structs one after another, by using the returned value as the next address.
Perhaps it would also make sense if
getjust returned void.What do you guys think?
Your workbench
Steps to reproduce
Not relevant.
Expected behavior
Not relevant.
Actual behavior
Not relevant.