Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50752 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73518 invoked from network); 1 Dec 2010 01:01:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Dec 2010 01:01:03 -0000 Authentication-Results: pb1.pair.com smtp.mail=dukeofgaming@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dukeofgaming@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.54 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: dukeofgaming@gmail.com X-Host-Fingerprint: 74.125.82.54 mail-ww0-f54.google.com Received: from [74.125.82.54] ([74.125.82.54:50199] helo=mail-ww0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 18/73-53511-E4E95FC4 for ; Tue, 30 Nov 2010 20:01:03 -0500 Received: by wwb31 with SMTP id 31so5109988wwb.11 for ; Tue, 30 Nov 2010 17:00:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=+fbnm+VDqovrnhWYziVCYYdy8CfRUtp9TyegImNiuSY=; b=IsR9yi/1BYbSqk0Wp/OCpedJA6KvvCfh2dz+CeRzqDJTyZ9+CJ1NDy1rB8jVYS4kuC 85+9Vw9dsrZP7kUI1dRk2by1J50WeglS8S6xHivp7IuXH5d3HftuYxQTV2Qol3Lvih2i 0JX5Df76C9f81pJWdmCAh26xxGKOQki7Sz6hg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=iV31H2v1sY1aGDyFz4I9ugqJQSlc9P+s1+1hBEurpcsZ9h+j1piyQfrsO14cg6QPmf 7NfK3sX7xksPIdo5PAHmupYPG4B2sMgN7hMlX1wcT8O1blokXJJmwWYnOWSAg+iztXjc 2s1UeiRZdujASX2CFreSuuuxz6GSusO0Xblt8= Received: by 10.216.44.208 with SMTP id n58mr1376977web.39.1291165259171; Tue, 30 Nov 2010 17:00:59 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.72.142 with HTTP; Tue, 30 Nov 2010 17:00:38 -0800 (PST) In-Reply-To: References: <1290879624.7033.826.camel@guybrush> Date: Tue, 30 Nov 2010 19:00:38 -0600 Message-ID: To: Kalle Sommer Nielsen Cc: Patrick ALLAERT , =?ISO-8859-1?Q?Johannes_Schl=FCter?= , PHP internals list Content-Type: multipart/alternative; boundary=0016367b5e429e870a04964ed62d Subject: Re: [PHP-DEV] RFC: Making T_FUNCTION optional in method declarations From: dukeofgaming@gmail.com (dukeofgaming) --0016367b5e429e870a04964ed62d Content-Type: text/plain; charset=ISO-8859-1 Hi, first time on the lists, guess I'm from userlando too, +1 for readability, all I ever really look at are "( ... ){" at the end of the line so I personally don't think it affects readability. Also, this is the way its done in other languages and I have always found the function keyword unnecessary in PHP. Regards, David 2010/11/30 Kalle Sommer Nielsen > Hi > > 2010/11/30 Patrick ALLAERT : > > With this patch, something looks inconsistent to me: > > Both properties and methods have a visibility > > (public|protected|private) and a keyword: "var" (T_VAR) and "function" > > (T_FUNCTION) respectively. > > However "private var $foo;" generates a fatal error but "private > > function foo(){}" not? > > The "var" keyword is an alias of the "public" keyword for BC with > PHP4. So it would be illogically to declare a property both private > and public at the same time ;-) > > > > -- > regards, > > Kalle Sommer Nielsen > kalle@php.net > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --0016367b5e429e870a04964ed62d--