scala / docs.scala-lang

The Scala Documentation website
http://docs.scala-lang.org
561 stars 1.02k forks source link

Update scala-features.md #3041

Open stensh1 opened 2 months ago

stensh1 commented 2 months ago

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

som-snytt commented 1 month ago

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.