Ir al contenido

No Hungarian notation (ARCH2011)

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

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

Hungarian-notation type prefixes like strName, iCount, b_flag and cryptic abbreviations add noise by repeating what the type system already conveys. Names should describe purpose, not type.

def process(strName, iCount, b_active):
lstItems = []
return lstItems
def process(name, count, is_active):
items = []
return items

Drop type prefixes and cryptic abbreviations; name identifiers by their purpose (e.g. strName → name).