Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66274 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95472 invoked from network); 27 Feb 2013 15:20:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Feb 2013 15:20:20 -0000 Authentication-Results: pb1.pair.com smtp.mail=krebs.seb@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=krebs.seb@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.182 as permitted sender) X-PHP-List-Original-Sender: krebs.seb@gmail.com X-Host-Fingerprint: 209.85.212.182 mail-wi0-f182.google.com Received: from [209.85.212.182] ([209.85.212.182:48664] helo=mail-wi0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 95/81-20700-3342E215 for ; Wed, 27 Feb 2013 10:20:20 -0500 Received: by mail-wi0-f182.google.com with SMTP id hi18so813243wib.3 for ; Wed, 27 Feb 2013 07:20:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=FJ8gg2mMsy8F5R9XsTiPcNE7aaGF4CJlB0HVJwAjJK4=; b=XjbouM3RluzpltUR+t9jBckyS4etOMjVeb3KcyIjkID6CcPuUBbosuPlP8jrjQfOsv eqPLik231uXCPA322/ziRdWxE4eEF5wXj+W6FPtCiKpQnc52JrNSRrnQlR0jQ0+VhlaZ vdUFgivhOfL2V7q93oYPsMzjdiSKWs6srIRgmVhdvD78a7c/gDkLZqHowJNRvo1gu01r tFoWS4TxBuMtuMFuKQahbwAENFngb9/ZzW2F7ID1OL3f8sO1HTE3tinrSicpenJWIcpE 1PSGUY0IQTToTUXhuPekpsI9SwYXFcQo2EBHQM/jH/oF/ik7GeVVl7mu6JWX2BjcTsoi Sr+A== X-Received: by 10.194.133.98 with SMTP id pb2mr4717776wjb.20.1361978411499; Wed, 27 Feb 2013 07:20:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.98.197 with HTTP; Wed, 27 Feb 2013 07:19:51 -0800 (PST) In-Reply-To: <512E2278.3070406@2e-systems.com> References: <512DB820.6060908@sugarcrm.com> <512E1E1B.6020007@googlemail.com> <512E2278.3070406@2e-systems.com> Date: Wed, 27 Feb 2013 16:19:51 +0100 Message-ID: To: Frank Schenk Cc: PHP internals list Content-Type: multipart/alternative; boundary=089e0117742b68c67904d6b64fd5 Subject: Re: [PHP-DEV] Add get_object_constants and get_class_constants From: krebs.seb@gmail.com (Sebastian Krebs) --089e0117742b68c67904d6b64fd5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 2013/2/27 Frank Schenk > Hi Crypto Compress, > > big congratz to that name, your mummy Hash Compress and your daddy Image > Compress must be very proud! > > SCNR > > Am 02/27/2013 03:54 PM, schrieb Crypto Compress: > > Hello Mike, > > > > thank you! It is a useful feature to me. > > > > class MyBitmask { > > const POS_1 =3D 1; > > // const POS_2 =3D 2; // reserved/undefined > > // const POS_3 =3D 3; // reserved/undefined > > const POS_4 =3D 4; > > I'm developing software with PHP since version 2 and i'm still easily > impressed by such code. So we need get_object_constants and > get_class_constants for such fancy stuff? > > Where's the good old > $flag =3D=3D true; or FLAG =3D=3D true;? > > A bitmask class to shuffle around with class constants using reflection > of itself and a magic method get_class_constants to check a boolean flag? > > I just don't get it but maybe i'm to focused to doing things the most > simple and readable/maintainable way. > > Maybe, in a few years, c++ will be a beginners language compared to PHP > which gets added new shiny features every day which will only be used by > even more shiny frameworks and the most shiniest, bloated objects one > can imagine. > I don't see this one in a framework. Just said :) > > With every fancy feature added to PHP you kill a kitten! > > I'm more with this "Give PHP and it's core developers a rest" so that > the core can be improved/cleaned up instead of adding Java features > people have seen on the university and like them but now they're forced > to use PHP which is like the opposite of Java. Java has it's good > reasons too. Just a tool. Use the tool that fits best, don't use the > hammer as a saw by adding teeth to it. > > Cheers, > Frank > > -- > > Frank Schenk > Software Analyst > 2e Systems > > Tel: +49 - 6196 - 95058 - 30 > Fax: +49 - 6196 - 95058 - 94 > E-mail: frank.schenk@2e-systems.com > > Address: 2e Systems GmbH, K=F6nigsteiner Str. 87, D-65812 Bad Soden am Ta= unus > Company registration: Amtsgericht K=F6nigstein (Germany), HRB 7303 > Director: Philip Douglas > > http://www.2e-systems.com/ - making your business fly! > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --=20 github.com/KingCrunch --089e0117742b68c67904d6b64fd5--