docs.scala-lang icon indicating copy to clipboard operation
docs.scala-lang copied to clipboard

Update scala-features.md

Open stensh1 opened this issue 1 year ago • 2 comments

The sentence "Например, переменные создаются лаконично, а их типы понятны:" does not correspond to the code example, there are no "var" but "val" instead.

stensh1 avatar Jul 09 '24 16:07 stensh1

vals and vars are both called variables in an informal context. Otherwise, "mutable variable" would be redundant. Other distinctions I would prefer be universally honored include "definition" vs "declaration", and "its" vs "it's". Also a constant is a constant only if it is a mathematically precise value that never changes.

som-snytt avatar Aug 10 '24 03:08 som-snytt

I don't know Russian but I agree that the val should stay a val.

SethTisue avatar Oct 26 '24 19:10 SethTisue