Constructor naming is a fun one also. Clippy wags its finger at returning Result<Self> from `fn new()`. And I think it makes sense. Instead I use: - `open` for any file operations, e.g. databases - `bind` for networking, e.g. servers - `connect` for networking, e.g. clients
-
-
Show this thread
-
If it's unclear whether it's client or a server (p2p, udp) using `bind` seems like the better choice.
Show this thread
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.