• Samuel Vella (5/7/2009)


    tlehner (5/7/2009)


    What's up w/ the leading comma haters? I suppose you put your ands and ors at the end of a line, too? lol...

    Leading commas looks grammatically wrong

    compare (Addresses used to be written with comma's to seperate each address element - at least thats how I was taught)

    Queen of England,

    Buckingham Palace,

    London,

    England

    with

    Queen of England

    ,Buckingham Palace

    ,London

    ,England

    Samuel, no, I don't put ANDs and ORs at the end of the line. They go where they are most easily visible and comprehensible for the reader who comes after me, i.e. at the beginning of a new line of code AND properly indented.

    Re Grammatically looking wrong, no, it is not. There are no rules in any natural language I know of that impose a rule as to whether a comma must be at the end of a line or at the beginning. If we are talking grammar, then only the rules as to where a comma must be placed inline to make syntactical or sementical sense are defined. It's only some older computer languages that imposed rules that forced one to put certain statements at certain offsets from the begiinning of a new line. Darn, I hated those.

    --------------------------------------------------------------------------
    A little knowledge is a dangerous thing (Alexander Pope)
    In order for us to help you as efficiently as possible, please read this before posting (courtesy of Jeff Moden)[/url]