trustedtomato / proposal-partial-expression

Function partial application, operator partial application and all that fun stuff.
10 stars 1 forks source link

Precedence of the # operator #3

Open trustedtomato opened 6 years ago

trustedtomato commented 6 years ago

Originally I thought the precedence should be between the Logical OR (… || …) and the Conditional (… ? … : …) as it would seem very wrong if #? || true would translate to (x => x) || true or #? ? ? : ? would translate to (x,y,z) => x ? y : z... (ternary operator discussion: #2) But now I think that actually makes sense, so it should have the precedence of 3.5 (right above assignment). What are your thoughts?