05.08.2011 16:06 Uhr, Quelle: The Unofficial Apple Weblog

Dev Juice: What's the deal with k for constants?

Dear Dev Juice, What's the deal with the k in #define kFilename. Is it German? Does it stand for konstant? What gives? Pure Fusion Dear Pure Fusion, The k prefix seems to originate in a naming system called Hungarian Notation, developed by Charles Simonyi at Xerox PARC. The idea behind this system is that the name of a variable should reflect its semantics. Wikipedia offers a sense of these naming conventions, such as arru8NumberList, meaning the variable is an array of unsigned 8-bit integers. Apple follows a similar but more practical convention. Like the original Hungarian

Weiterlesen bei The Unofficial Apple Weblog

Digg del.icio.us Facebook email MySpace Technorati Twitter

JustMac.info © Thomas Lohner - Impressum - Datenschutz