Scala

Scala

Made by DeepSource

Usage of reserved keywords SC-W1030

Bug risk
Major

This variable identifier is a reserved keyword.

Certain identifiers are reserved by Scala for future use as keywords. Many languages, including Scala, follow such practices. But while Scala still allows such identifiers to be used normally, It is not recommended to do so. Such usage can cause compatibility issues and even compilation errors when migrating code to a new Scala version.

Bad practice

var given = ...

Recommended

var givenValue = ...