SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Addict
    Join Date
    Jan 2007
    Posts
    323
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    class method names and reserved words

    Is it ok to use reserved words in class method names?

    like...

    class SomeName {
    function SomeName() {}

    function insert(...) {}

    function delete(...) {}

    function find(...) {}
    }

    Or something different? Any suggestions on naming the standard methods like inserting, updating, deleting, find, etc.

  2. #2
    SitePoint Guru
    Join Date
    May 2005
    Location
    Finland
    Posts
    608
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Which one of insert, delete and find is reserved?

    No, it's not ok. List(), for example, would get you trouble.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •