From: "trans. (T. Onoma)" Date: 2004-10-09T13:17:56+09:00 Subject: Re: ANN: Free-form-operators patch On Friday 08 October 2004 11:59 pm, Jim Weirich wrote: | Now back to the legal operators ... | | (A) is legal, e.g.    2<-+1    => false | (B) is illegal, e.g.  2+/-1    => illegal, however, 2/-1 is legal | (C) is illegal (but I'm not sure why) |       ! ~~1 is legal, but !~~1 gives strange results |       try:   ruby -e '!~~1'  and see for yourself. | (D) is legal, e.g.    ++1      => 1 | | Anyways, I'm not sure it will be immediately obvious to the casual | observer that +/- is a user defined operator and ++ and <+- are | concatenations of existing legal Ruby built in operators.  (Or that !~~ | looks like a concatentation of built in operators, but for some reason | is not). Spaces b/c important, which isn't necessarily a bad thing. A rule that operator "on top of operator" requires a space solves problem. So '!1' or '! 1' is fine, but two in a row must be '! !1' or '! ! 1', not '!!1' as '!!' would be considered one operator. Or did you figure out a better way, Markus? T.