lkml.org 
[lkml]   [2002]   [Feb]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: ide cleanup
    Hi!

    > >>>IDE is
    > >>>* infested with polish notation
    > >>>
    > >>I don't see any polish notation there. Could you please explain what you
    > >>mean with this note?
    > >>
    > >
    > >I think Pavel meant what I think is called "hungarian notation", adding
    > >_t's to type identifiers or adding _i or i_ to integer variables.
    > >
    > The encoding of type signatures in function names is indeed called
    > hungarian notation.
    > The _t at the end of type names is a POSIX habit of markup for system
    > defined types - this should *NOT*
    > be used in user land programms but is OK for the kernel. However for the
    > ide drivers it's indeed unnecessary
    > code noise.
    >
    > Polish notation is the anglo-saxon term for a mathematical expression
    > syntax which is avoiding
    > parents by not using an "in between" operator notation but using
    > functional notation instead.
    > It was invented by ?ukasiewich at the beginning of the last century for
    > formal logic and is indeed more
    > convenient there if you start to deal with long expressions.... Just to
    > clarify the terms OK?

    Sorry, I really meant that nasty _t. (The driver even did things like

    struct foo xyzzy;
    memset(&xyzzy, 0, sizeof(foo_t));

    using both 'struct foo' and foo_t for one variable.
    Pavel
    --
    (about SSSCA) "I don't say this lightly. However, I really think that the U.S.
    no longer is classifiable as a democracy, but rather as a plutocracy." --hpa
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:24    [W:4.477 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site