Overridable operator precedence

2021-05-02 Thread mark
you can high up you rank in fortnite by using www.proboosting.net

Overridable operator precedence

2021-05-02 Thread mark
sadf

Overridable operator precedence

2021-05-02 Thread cumulonimbus
I know we're all used to operator precedence from elementary school and in programming languages, but beyond the very basic rules, most people find them very confusing -- especially with semantics vs syntax (e.g., many people assume << in C has the same precedence as * because they are both mult

Overridable operator precedence

2021-05-01 Thread rb3
I see, that makes sense.

Overridable operator precedence

2021-05-01 Thread Araq
> special casing has been written into the parser Last time I checked Nim had a grammar and the parser reflects the grammar...

Overridable operator precedence

2021-05-01 Thread shirleyquirk
> let's see what breaks accepted I spent a morning trying to implement that RFC, which was supposed to be a simple change in operator precedence for `.*` I soon found that much special casing has been written into the parser around 'x.y' and that 'precedence' is a fuzzy beast indeed

Overridable operator precedence

2021-05-01 Thread Araq
Nim was designed to be parsable without a symbol table and this feature would break this design. You can come up with post-parse rewrite rules (which is also what Haskell does iirc), in fact, you could implement these rules via a macro. But I don't like it and I don't see why we would need it.

Overridable operator precedence

2021-05-01 Thread kobi
I think the user should know there is a conflicting implementation of the same proc, and has to explicitly define which import he means to use. that is, from x import op`+` or possibly the full proc signature if operators with the same name are allowed.

Overridable operator precedence?

2021-05-01 Thread rb3
I read somewhere in the forums that someone once suggested to add overridable operator precedence to the compiler, and it seemed that Araq had flat out refused. I think there are several good reasons to not allow this, the most important for me being: it's hard to understand code that

Overridable operator precedence

2021-05-01 Thread rb3
I read somewhere in the forums that someone once suggested to add overridable operator precedence to the compiler, and it seemed that Araq had flat out refused. I think there are several good reasons to not allow this, the most important for me being: it's hard to understand code that