On 17 February 2013 14:27, H.Merijn Brand <h.m.brand@xs4all.nl> wrote: > On Sun, 17 Feb 2013 14:24:15 +0100, Johan Vromans > <jvromans@squirrel.nl> wrote: > >> David Golden <xdg@xdg.me> writes: >> >> > I strongly favor showing "or die..." instead of "|| die..." because >> > the lower precedence operator is safer should parentheses be omitted. >> >> I second this preference, but for a different reason: I advice people to >> use || for expressions, and or for statements. Although technically >> speaking all (well, most) statements are also expressions, it is more >> intuitive to mentally make the distinction where appropriate. > > ++ to that Ditto, although mostly for the first reason: "or" works with or without parens. || does not. Yves -- perl -Mre=debug -e "/just|another|perl|hacker/"Thread Previous | Thread Next