When returning an immutable reference to a private struct field. (On mobile and used vertical bars instead of a bunch of HTML codes)
I started off avoiding mod.rs because it's the old way and I prefer having the module name as the filename. However, if the module needs a folder for submodules anyway, then there's a reason to tuck it away as mod.rs, especially if not doing so leaves lots of duplicate names (a.rs, b.rs, c.rs, ..., a/, b/, c/).
But then I don't really like to have much else in mod.rs other than mod declarations and pub use. Maybe a utility fn or a not-unwieldly implementation of struct "Foo", the module's namesake.
https://crates.io/crates/cypher-dto
https://media0.giphy.com/media/8MKZszt2zP7KR3LtTX/giphy.gif?cid=6c09b952jsbhliv29zacz7h6j6nnioe270twc062sp7nyx52&ep=v1_internal_gif_by_id&rid=giphy.gif&ct=g%20idk
https://youtu.be/luE0mPVhK9k?t=6390
We inhabit a galaxy known as the Milky Way, which contains hundreds of billions of stars. How did we arrive at this point, and what is our future? These conc...
This is c/dart (!dart?). See also c/flutter.
Edit: there's also https://lemmy.world/c/dartlang
@jpfreely
@programming.dev