boblaw0@lemmy.world to Rust@programming.dev · edit-21 year agoHow do you order your enums, structs and functions in your files?message-squaremessage-square8fedilinkarrow-up115arrow-down10
arrow-up115arrow-down1message-squareHow do you order your enums, structs and functions in your files?boblaw0@lemmy.world to Rust@programming.dev · edit-21 year agomessage-square8fedilink
minus-squareFil@hachyderm.iocakelinkfedilinkarrow-up2·1 year ago@boblaw0 In an order that tells the story, when reading the module file top-to-bottom. It is usually difficult to do when rapidly developing, but easier to achieve when refactoring a working program or a library.
@boblaw0 In an order that tells the story, when reading the module file top-to-bottom. It is usually difficult to do when rapidly developing, but easier to achieve when refactoring a working program or a library.