Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103845 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 61457 invoked from network); 25 Jan 2019 15:03:37 -0000 Received: from unknown (HELO poczta.brzuchalski.com) (188.165.245.118) by pb1.pair.com with SMTP; 25 Jan 2019 15:03:37 -0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by poczta.brzuchalski.com (Postfix) with ESMTP id 8CA1A2984239 for ; Fri, 25 Jan 2019 12:41:55 +0100 (CET) Received: from poczta.brzuchalski.com ([127.0.0.1]) by localhost (poczta.brzuchalski.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KQ3ErptuEGs7 for ; Fri, 25 Jan 2019 12:41:49 +0100 (CET) Received: from mail-lf1-f44.google.com (unknown [209.85.167.44]) by poczta.brzuchalski.com (Postfix) with ESMTPSA id BE3102984233 for ; Fri, 25 Jan 2019 12:41:48 +0100 (CET) Received: by mail-lf1-f44.google.com with SMTP id a8so6704732lfk.5 for ; Fri, 25 Jan 2019 03:41:48 -0800 (PST) X-Gm-Message-State: AJcUukflAmQPZx/cN6xAi4CI8qnqMFZdwTuk4OLMvRRIkWq3Uqgu1RYS BOI3vdwEqOR8l+2QA79i3UZfyj+K+btX14TpXn8= X-Google-Smtp-Source: ALg8bN72JH3Z+T2w5krSYWbuFG22Sh1aeoP2DkwDdlEX3YQI82+rAD+7JxBmXuzTOdaZ21vMlwfXD8v0KpAt+piXz3U= X-Received: by 2002:a19:4849:: with SMTP id v70mr8888041lfa.62.1548416508121; Fri, 25 Jan 2019 03:41:48 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 25 Jan 2019 12:41:36 +0100 X-Gmail-Original-Message-ID: Message-ID: To: =?UTF-8?B?0JPQu9C10LEg0JbRg9C60L7Qsg==?= Cc: PHP Internals List Content-Type: multipart/alternative; boundary="000000000000ee5dc4058046cf41" Subject: Re: [PHP-DEV] New RFC about variables. From: michal@brzuchalski.com (=?UTF-8?Q?Micha=C5=82_Brzuchalski?=) --000000000000ee5dc4058046cf41 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Is this a joke? pt., 25 sty 2019 o 11:32 =D0=93=D0=BB=D0=B5=D0=B1 =D0=96=D1=83=D0=BA=D0=BE= =D0=B2 napisa=C5=82(a): > Hi, my name is Gleb Zhukov. > > In my RFC I want to propose to use a new entities(abstractions), like > *objects*, *structures* and *data* instead of variables. It gives such > advatege like a mental division of different, independent entities(object= s, > structures, data) in any language. For example > > //If earlier we were using variables to store, or access objects, data an= d > everything else > > $object =3D new SomeClass(); > $array =3D ['one','two' =3D> 'three']; > $data =3D 'string'; > > //Now we will use special "*object*" entities to store or access objects > (wich may be defined with # character) > > #object =3D new SomeClass(); > > //Special "*structure*" entities for arrays or any other structures (wich > may be defined with * character) > > *stucrture =3D ['one', 'two', 'key' =3D> 'val', 'another_key' =3D> > 'another_val']; > > //And special "*data*" entities for all data (strings, integers, floats, > booleans) (wich may be defined with % character) > > %string =3D 'abcde'; > %integer =3D 123; > %floating =3D 1.23; > %boolean =3D true; > > The remaining types(callables, resources), I suppose, should continue to > store in variables. New characters for our new entities will be discussed > further in RFC. > --=20 regards / pozdrawiam, -- Micha=C5=82 Brzuchalski about.me/brzuchal brzuchalski.com --000000000000ee5dc4058046cf41--