Sobes.tech
Junior — Middle

Is it possible to use negative variable or identifier names in Dart?

sobes.tech AI

Answer from AI

In the Dart language, variable names and identifiers cannot be negative. That is, you cannot use the minus sign - at the beginning of a variable name. Identifiers must start with a letter or an underscore, and can then contain letters, digits, and underscores. For example, -variable or -count are invalid, while variable, _count are valid.

Is it possible to use negative variable or identifier… - sobes.tech