Re: [PHP-DEV] Re: New RFC draft "static class constructor"

2016-04-14 Thread S.A.N
2015-04-28 11:29 GMT+03:00 Johannes Ott : > Am 13.04.2015 um 15:37 schrieb Johannes Ott: >> Hi, >> >> finally I managed to do my first RFC draft. >> >> https://wiki.php.net/rfc/static_class_constructor >> >> I hope I have done everything correct so far and I'm looking forward to >> your feedback on

[PHP-DEV] Re: New RFC draft "static class constructor"

2015-04-28 Thread Johannes Ott
Am 13.04.2015 um 15:37 schrieb Johannes Ott: > Hi, > > finally I managed to do my first RFC draft. > > https://wiki.php.net/rfc/static_class_constructor > > I hope I have done everything correct so far and I'm looking forward to > your feedback on it. > > As I already mentioned in the prediscus

[PHP-DEV] Re: New RFC draft "static class constructor"

2015-04-13 Thread Johannes Ott
Am 13.04.2015 um 18:48 schrieb Cesar Rodas: > Instead of having a method, why don't we allow body expr to be evaluated as we see things in the Class definition? > > > class foobar > { > static protected $conn = new mysqli('localhost', 'my_user', 'my_password', 'my_db'); > } > > It's cleaner bu