note 76128 added to language.references

From: Date: Sun, 01 Jul 2007 22:27:56 +0000
Subject: note 76128 added to language.references
Groups: php.notes 
Request: Send a blank email to php-notes+get-128146@lists.php.net to get a copy of this message
I don't see what the big fuss is, I've used pass by reference to modify dangling variables in tree structures serializing and deserializing structures to databases.. It seems the reason for this limitation is due to the 99% PHP Newbie syndrome and their lack of pointer experience.. Note the only difference between C and PHP references is there is no pointer arithmetic.. Whether it's an alias or a memory location with the address of another, it's basically the same thing.. If you wanted I could implement tree structures in a linear resizeable array. What am I supposed to do with array_walk(&$datastructure,'function'); ???? What am I not getting here.. What is the logic behind disabling it.. When did the PHP coders get all theoretical on us.. C is a great language because it keeps the idiots at bay, and allows you to shoot yourself in the foot if you really want to.. If I wanted to protect myself from bad code techniques I'd go write in python or lisp. Better yet why don't we send the 99% to school to get computer science degrees. ---- Server IP: 208.69.120.35 Probable Submitter: 69.241.171.211 ---- Manual Page -- http://www.php.net/manual/en/language.references.php Edit -- https://master.php.net/note/edit/76128 Del: integrated -- https://master.php.net/note/delete/76128/integrated Del: useless -- https://master.php.net/note/delete/76128/useless Del: bad code -- https://master.php.net/note/delete/76128/bad+code Del: spam -- https://master.php.net/note/delete/76128/spam Del: non-english -- https://master.php.net/note/delete/76128/non-english Del: in docs -- https://master.php.net/note/delete/76128/in+docs Del: other reasons-- https://master.php.net/note/delete/76128 Reject -- https://master.php.net/note/reject/76128 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#128146) next »