Does my variable naming convention have a name?

前端 未结 5 645
猫巷女王i
猫巷女王i 2020-12-17 21:57

So I go by this Delphi naming scheme of arguments start with A, class vars start with F and local vars start with M. Does that scheme have a name? I see it a lot in the Del

5条回答
  •  南方客
    南方客 (楼主)
    2020-12-17 22:08

    Yours is in the general class of naming conventions known as Hungarian notation (in the perhaps broader-than-usual sense that the name has a prefix describing the variable), but no, your convention doesn't have any more specific name.

    I've never seen your particular choice of prefixes before. The closest I've seen is what I think of as the Indy convention, which uses A for arguments, F for fields, G for globals, L for locals, and of course the usual I for interfaces and T for records and classes. Properties and subroutines get no prefix.

提交回复
热议问题