3 ms·
Yeah, I understands it's confusing. The Ruby grammar does have some dark corners like that where the side effect of trying to make it possible to make things as
by vidarh 8y ago
Yeah, I understands it's confusing. The Ruby grammar does have some dark corners like that where the side effect of trying to make it possible to make things as free of punctuation as possible causes weirdness elsewhere.
Putting parens around it does make it one atomic expression though, it's just that in effect the "operators" are ;/lf, and these "pseudo-operators" return the value of the last sub-expression, and binds tighter than parens,
I can't actually remember seeing any one relying on grouping expressions with (), though, which is probably just as well.
(I'm sure someone will now come up with an "essential" use of it)