mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-03 10:23:20 +00:00

* `Context::subtype_of` now has `allow_cast` param. If this is `false`, cast-aware comparisons are not performed.
13 lines
188 B
Python
13 lines
188 B
Python
id x = x
|
|
|
|
if__ cond, then, else = if cond, then, else
|
|
|
|
for__! i, proc! = for! i, proc!
|
|
|
|
add x, y = x + y
|
|
|
|
abs_ x = x.abs()
|
|
|
|
|
|
Norm = Trait { .norm = (self: Self) -> Nat }
|
|
norm x = x.norm()
|