[Haskell-cafe] Re: Allowing hyphens in identifiers

Colin Paul Adams colin at colina.demon.co.uk
Wed Dec 16 10:08:43 EST 2009


>>>>> "Daniel" == Daniel Fischer <daniel.is.fischer at web.de> writes:

    Daniel> Database.Haskell_DB.Sql.Postgre_SQL

Actually, I would be semi-happy with Database.Haskell-DB.Sql.Postgre-SQL

(obviously we need an option whether to use hypens or underscores. I
prefer hyphens.)

    Daniel> Data.Bits.shiftL

    Daniel> would that be preferred as

    Daniel> shiftL

    Daniel> shift_L

    Daniel> shift_l

I think I prefer shift-left :-)
I'd settle for the last.

    Daniel> Generally, when shall we flatten the hump, 1) always --
    Daniel> not 2) unless followed by an uppercase letter 3) when
    Daniel> followed by a lowercase letter

I'm nit sure. i think a more sophisticated rule might be needed.

    Daniel> feedO'Houlihan?

    Daniel> IMO, it should clearly go to feed_O'Houlihan

Yes, I think so.
-- 
Colin Adams
Preston Lancashire


More information about the Haskell-Cafe mailing list