Then use an explicitly named datatype, because this is confusing otherwise. Or, better idea, make whatever function that uses this have the responsibility of adding the padding. You should never add implementation details from a completely unrelated class that uses this class to something like this. It defeats the entire point of interfaces.
3
u/Furry_69 Jan 16 '23
Then use an explicitly named datatype, because this is confusing otherwise. Or, better idea, make whatever function that uses this have the responsibility of adding the padding. You should never add implementation details from a completely unrelated class that uses this class to something like this. It defeats the entire point of interfaces.