On Fri, 25 Jan 2019 at 15:37, Levi Morrison wrote:
>
> If you have any more complex of a need (such as private variables)
> then I think you should write the constructor. The reason is that if
> you have private variables, you need to establish a public API
> contract.
>
Right, which is why I th
On Fri, Jan 25, 2019 at 4:05 AM Nikita Popov wrote:
>
> On Fri, Jan 25, 2019 at 11:44 AM Nikita Popov wrote:
>
> > On Wed, Jan 23, 2019 at 1:33 PM Andrey O Gromov
> > wrote:
> >
> >> Full description
> >> https://wiki.php.net/rfc/code_free_constructor
> >> Draft realisation
> >> https://github.c
On Fri, 25 Jan 2019 at 10:32, Глеб Жуков wrote:
> 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(obj
On Fri, 25 Jan 2019 at 11:05, Nikita Popov wrote:
> class Point {
> public int $x;
> public int $y;
> public int $z;
> }
>
> // (syntax just a dummy)
> $origin = new Point { x = 0, y = 0, z = 0 };
>
> Where the object initialization syntax ensures that all properties that
> don't have
Is this a joke?
pt., 25 sty 2019 o 11:32 Глеб Жуков napisał(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, indepen
On Fri, Jan 25, 2019 at 11:44 AM Nikita Popov wrote:
> On Wed, Jan 23, 2019 at 1:33 PM Andrey O Gromov
> wrote:
>
>> Full description
>> https://wiki.php.net/rfc/code_free_constructor
>> Draft realisation
>> https://github.com/php/php-src/compare/master...rjhdby:constructor
>>
>> "Code free" con
On Wed, Jan 23, 2019 at 1:33 PM Andrey O Gromov wrote:
> Full description
> https://wiki.php.net/rfc/code_free_constructor
> Draft realisation
> https://github.com/php/php-src/compare/master...rjhdby:constructor
>
> "Code free" constructor is constructor with only purpose to directly set
> object
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(objects,
structures, data) in any language. For example
//If