| ▲ | qouteall 2 hours ago | |||||||||||||||||||
With modern IDE and AI there is no need to save letters in identifier (unless too long). It should be "sizeInBytes" instead of "size". It should be "byteOffset" "elementOffset" instead of "offset". | ||||||||||||||||||||
| ▲ | pveierland 28 minutes ago | parent | next [-] | |||||||||||||||||||
When correctness is important I much prefer having strong types for most primitives, such that the name is focused on describing semantics of the use, and the type on how it is represented:
Where `parent` can then only be used to index a container of `FileNode` values via the `std::ops::Index` trait.Strong typing of primitives also help prevent bugs like mixing up parameter ordering etc. | ||||||||||||||||||||
| ||||||||||||||||||||
| ▲ | throwaway2027 2 hours ago | parent | prev [-] | |||||||||||||||||||
Isn't that more tokens though? | ||||||||||||||||||||
| ||||||||||||||||||||