4 ms·
> // 'BufferSize' is an object defined as a synonym for the value 1'000'000 > BufferSize: i32 == 1'000'000; So "value : i32 = 10" is variable, but "value : i
by kreco 3y ago
> // 'BufferSize' is an object defined as a synonym for the value 1'000'000
> BufferSize: i32 == 1'000'000;
So "value : i32 = 10" is variable, but "value : i32 == 10" is a constant.
The difference is so subtle I'm not sure I like it.
Later in the documentation you can find "equals: (a, b) a == b;" which is a function but it feels like I need to decipher it because "==" is not for alias in this case.
Retaking the example of "equals: (a, b) a == b;" it feels also odd to omit the braces because they are even enforced for if/else branches.
I have to admit that everything was interesting until the "Summary of function defaults" part.