When to use <tt>code</tt> as opposed to +code+

Any rules?

In the past, the plus sign only accepted words, ie, \w+. You could not put a symbol between +s for example.

But nowadays + accepts much more stuff.

The rule is: if it looks good today in +, use +, it’s simpler.