3 ms·
> Is there any reason why they overloaded the hash rocket? The fact that it's used for a kinda similar purpose in rescue clauses is a factor. > How does the p
by dragonwriter 6y ago
> Is there any reason why they overloaded the hash rocket?
The fact that it's used for a kinda similar purpose in rescue clauses is a factor.
> How does the parser tell them apart?
Unbraced hashes can only occur in last-argument-of-function position, so unless it's naked (not a parenthesized subexpression) in that position, it can't be an unbraced hash.