Conversation

What are some good conventions (any language) for methods/functions with subtly different behavior, especially as it relates to public invariants, etc? Some examples of what I mean in thread...
4
2
Replying to
"{to,into,as}_", while "good" conventions, they are not quite what I'm asking about. try_ and _mut are more relevant though. Interestingly, these both seem to suggest a missing language feature to me for automatic lifting/lowering from panics/results or immutable/mutable.
1
Show replies