You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As all operators in LoLa are strictly type safe and don't do implicit conversions, the compiler can deduce a lot of variable types when compiling, even when no type annotation is given.
This allows the compiler to emit warnings/errors when type mismatches are possible:
vara=10;// a is numbervarb=a>15;// b is boolenreturna+b;// this is a guaranteed type error as number != boolean
The text was updated successfully, but these errors were encountered:
As all operators in LoLa are strictly type safe and don't do implicit conversions, the compiler can deduce a lot of variable types when compiling, even when no type annotation is given.
This allows the compiler to emit warnings/errors when type mismatches are possible:
The text was updated successfully, but these errors were encountered: