No Hungarian Notation (ARCH8011)
Ce contenu n’est pas encore disponible dans votre langue.
Key kotlin.naming.no-hungarian-notation · Severity info · Category naming
Flags Hungarian-style type prefixes on identifiers (strName, iCount, m_value, arrItems).
Incorrect
Section titled “Incorrect”val strName = "x"var iCount = 0private val m_client = Client()Correct
Section titled “Correct”val name = "x"var count = 0private val client = Client()Drop the type prefix; the type system already carries that information.