Ir al contenido

No Hungarian Notation (ARCH9011)

Esta página aún no está disponible en tu idioma.

Key swift.naming.no-hungarian-notation · Severity info · Category naming

Flags Hungarian-style type prefixes on identifiers (strName, iCount, m_value, arrItems). Standard-library protocol requirements (intValue, stringValue) are excepted.

let strName = "x"
var iCount = 0
private let m_client = Client()
let name = "x"
var count = 0
private let client = Client()

Drop the type prefix; the type system already carries that information.