[PEPr] Comment on Structures::Structures_Linked_List

From: Date: Fri, 15 Sep 2006 12:41:43 +0000
Subject: [PEPr] Comment on Structures::Structures_Linked_List
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-43940@lists.php.net to get a copy of this message
Scott Mattocks (http://pear.php.net/user/scottmattocks) has commented on the proposal for Structures::Structures_Linked_List. Comment: Why put a singleton errorstack instance into the GLOBALS array? You can get to that instance at any time using the singleton method. Don't use double quotes unless you have to. (I don't see anywhere that you have to) I think the API would be cleaner and easier to use if instead of: addNode($newNode, $mode, $oldNode) you had: prependNode($node) appendNode($node) insertNode($newNode, $oldNode, $before = false) I don't see the much value in: $retval = false; return $retval; Just return false instead of wasting an operation assigning it to something else first. The package should be named Structures_LinkedList with the classes named Structures_LinkedList and Structures_LinkedList_Node. Proposal information: http://pear.php.net/pepr/pepr-proposal-show.php?id=444 -- Sent by PEPr, the automatic proposal system at http://pear.php.net

« previous php.pear.dev (#43940) next »