Re: Suffix _T for types found good



On Wed, 6 Aug 2008, Steve wrote:

|-----------------------------------------------------------------------------|
|""Peter C. Chapin" <pcc482719@xxxxxxxxx> wrote in message |
|news:4899d2af$0$19731$4d3efbfe@xxxxxxxxxxxxxxxxx |
|> amado.alves@xxxxxxxxx wrote: |
|> |
|>> Regarding "_T" vs. "_Type" I am convinced the former is better but I |
|>> have to leave the advocacy for later. Or for others ;-) |
|> |
|> Personally I prefer _Type. Yes it is more verbose but it follows the |
|> convention of using fully spelled out words for things. For access types I |
|> [..] |
| |
|I go with _Type too, [..]" |
|-----------------------------------------------------------------------------|

I prefer _Type instead of _T.

|-----------------------------------------------------------------------------|
|"For years the convention at work (I'm not sure where it came from) was to |
|precede type names with a lower case "a" or "an" so a declaration would be |
|something like: |
| |
| index : anIndex; |
| buffer : aBuffer; |
| |
|Since I used the convention for years I can say it helped readability a lot, |
|but every once in a while I did run into cases where I would want a variable |
|name to start with a or an and would have to choose something different, or |
|accept some "different" looking code." |
|-----------------------------------------------------------------------------|

I do not remember having had seen this convention before. I like a
variant of it: a_buffer instead of aBuffer.
.



Relevant Pages

  • Re: TIME MAG / Las Vegas hit haard by economic downturn
    ... Having your company caught in Las vegas is now akin ... Steve Wynn's word over Steve HK's ANYDAY OF THE WEEK. ... Wynn: Obama?s remarks bad for convention business ...
    (alt.vacation.las-vegas)
  • Re: intro and ? on writing double to file as char
    ... "double" is a primitive type. ... capital letters, while method and variable names should always begin ... with convention. ... Steve W. Jackson ...
    (comp.lang.java.programmer)
  • Re: Jugglers in Lyon / France / Europe
    ... > Steve Bennett wrote: ... >> I'm stuck in Lyon for the next year. ... > Juggling meetings: http://www.jongle.net/modules.php?name=Calendar ... April it's the British convention, which is 4 days and can attract up to ...
    (rec.juggling)
  • Re: CES?
    ... In article, Steve ... convention center. ... from MGM and will do so again tomorrow. ... I take it the monorail wasn't so crowded as to make the waiting time ...
    (alt.vacation.las-vegas)
  • Re: "Soaring, Beyond The Basics" By Dale Masters
    ... I agree with Jim and Steve. ... Bought mine at the SSA 2007 Convention ...
    (rec.aviation.soaring)