Actually, it seems like it already works :) I didn't know that. Also, the <http://docs.julialang.org/en/release-0.2/manual/mathematical-operations/#chaining-comparisons> manual<http://docs.julialang.org/en/release-0.2/manual/mathematical-operations/#chaining-comparisons>says that && is used to chain dotless comparisons and & to chain dotted ones. I only wonder what is used if you try a combination such as 1 .< 2 > 0 (which evaluates to true).
On Tuesday, 15 April 2014 16:40:15 UTC+2, Stefan Karpinski wrote: > > On Tue, Apr 15, 2014 at 7:22 AM, Toivo Henningsson > <[email protected]<javascript:> > > wrote: > >> I wonder if pt1 .< x .< pt2 should be parsed into .<(pt1, x, pt2) or (pt1 >> .< x) & (x .< pt2) to allow chaining of dotted comparisons just like >> undotted ones? >> > > Yes, I really think this should be supported. Would you open an issue? >
