feat!: change constructor syntax: C::__new__() -> C()

This commit is contained in:
Shunsuke Shibayama 2024-02-08 02:42:49 +09:00
parent 36fcc8cb79
commit fce88717b0
16 changed files with 90 additions and 56 deletions

View file

@ -20,7 +20,7 @@ Point3D.
# Overloading is prohibited by default. Remove this decorator and check for errors.
@Override
new x, y, z =
Point3D::__new__ {x; y; z}
Point3D {x; y; z}
@Override
norm self = self::x**2 + self::y**2 + self::z**2