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

13 views
Skip to first unread message

Manuel Menezes de Sequeira

unread,
Oct 6, 2011, 5:37:32 PM10/6/11
to rubyonra...@googlegroups.com
Any rules?

Xavier Noria

unread,
Oct 6, 2011, 5:51:43 PM10/6/11
to rubyonra...@googlegroups.com
On Thu, Oct 6, 2011 at 11:37 PM, Manuel Menezes de Sequeira <mmseq...@gmail.com> wrote:

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.

Reply all
Reply to author
Forward
0 new messages