Re: Idea to extend language: Explicitly setting variable scope inside user defined function (longer)

From: Date: Mon, 21 Oct 2002 10:37:15 +0000
Subject: Re: Idea to extend language: Explicitly setting variable scope inside user defined function (longer)
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-89790@lists.php.net to get a copy of this message
Marco Tabini <marcot@tabini.ca> wrote... : > Well, you have to admit that the issue of variable scope is the first > thing that hits someone who approaches PHP for the first time and comes > from other backgrounds, like C or ASP! Or Ruby where instead of the dollar sign for the global variable you use at-mark :) (The dollar sign is another scope, and C-like prefix-less vars are local :), Correct me if I am wrong) Well, in a way it is right to have this, but in a way it get things more difficult for newbies to start. I prefer PHP handling variables the way it does right now. Maybe something like what is suggested can be optional, but I don't think it is really doable as to be "an option". -- Maxim Maletsky maxim@php.net www.PHPBeginner.com // where PHP Begins

« previous php.dev (#89790) next »