Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59404 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1943 invoked from network); 7 Apr 2012 13:50:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Apr 2012 13:50:10 -0000 Authentication-Results: pb1.pair.com header.from=dshadow@zort.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=dshadow@zort.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain zort.net from 96.241.205.2 cause and error) X-PHP-List-Original-Sender: dshadow@zort.net X-Host-Fingerprint: 96.241.205.2 nova.zort.net Received: from [96.241.205.2] ([96.241.205.2:49007] helo=nova.zort.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 89/D2-23111-016408F4 for ; Sat, 07 Apr 2012 09:50:08 -0400 Received: from [10.0.1.2] (pulsar.zort.net [96.241.205.6]) (authenticated bits=0) by nova.zort.net (8.14.5/8.14.4) with ESMTP id q37Do5ub014482 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Sat, 7 Apr 2012 09:50:05 -0400 Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1257) In-Reply-To: Date: Sat, 7 Apr 2012 09:50:05 -0400 Content-Transfer-Encoding: quoted-printable Message-ID: <03FFDCA3-90B2-48CA-B102-7562E0E9CA45@zort.net> References: To: PHP Internals X-Mailer: Apple Mail (2.1257) Subject: Re: [PHP-DEV] PHP class files without > =46rom the viewpoint of someone writing reusable classes, the need to > start with above it is a silly annoyance they don't experience with other tools. >=20 > That said, you are making valid points, I'm not convinced myself that > "file extensions" necessarily should or could be determined in every > context. But it seems the most viable way of addressing the issue - if > a viable way even exists. Partly I want to convince myself that this > either can or can't ever be improved, and move on either way (: That "silly annoyance" doesn't seem to bother anyone who writes command = line tools, which require the #! line specifying the command interpreter = to be the first bytes in the file, with no leading white space = whatsoever. Especially on unix systems (but also on the Mac), the file = extension does not affirmatively indicate the file type or whether or = not it can be executed. Also, from a CLI perspective, you don't want extensions in the names of = your scripts, because then it causes problems/confusion/extra work if = you later decide to change the language the script is written in. -John -- John Bafford http://bafford.com/