Re: [PHP-DEV] Progress or just 'a mess'?

2017-09-20 Thread Stanislav Malyshev
Hi! > Having established that the only characters that are case-insensitive in > PHP7 ... the unicode basic latin set ... the discussion SHOULD be on > either expanding that to cover all case folding or simply removing this > rather limited case? Why? Does anybody seriously need Russian case fol

[PHP-DEV] Re: [RFC] Consistent null behaviour

2017-09-20 Thread Christoph M. Becker
On 20.09.2017 at 19:06, ilija.tov...@me.com wrote: > To my surprise, I noticed today that an array access on a `null` value > returns `null` without any warning whatsoever. > Accessing the property of a `null` value gives you a notice, while calling a > function on that `null` value gives you a

Re: [PHP-DEV] [RFC] Pre-draft for PipeOp v2

2017-09-20 Thread Sara Golemon
On Wed, Sep 20, 2017 at 12:52 PM, Derick Rethans wrote: > On Wed, 20 Sep 2017, Nikita Popov wrote: >> > Future Scope: Short Lambdas `$x => $x + 1` and Partial Functions >> > `someFunc('fixed val1', ..., 'fixed val2')` would help make this >> > functionality more useful and are worth discussing as

Re: [PHP-DEV] [RFC] Consistent null behaviour

2017-09-20 Thread li...@rhsoft.net
Am 20.09.2017 um 19:23 schrieb ilija.tov...@me.com: I realized after sending the initial E-Mail that there might be more breaking changes than I thought, like the one you suggested. The same thing actually happens for bools, ints and floats: https://3v4l.org/jvVbO I wouldn’t depend on this b

Re: [PHP-DEV] [RFC] Consistent null behaviour

2017-09-20 Thread ilija . tovilo
I realized after sending the initial E-Mail that there might be more breaking changes than I thought, like the one you suggested. The same thing actually happens for bools, ints and floats: https://3v4l.org/jvVbO I wouldn’t depend on this behaviour since you’d get errors depending on what is re

Re: [PHP-DEV] [RFC] Consistent null behaviour

2017-09-20 Thread li...@rhsoft.net
Am 20.09.2017 um 19:06 schrieb ilija.tov...@me.com: Hi everybody! To my surprise, I noticed today that an array access on a `null` value returns `null` without any warning whatsoever. Accessing the property of a `null` value gives you a notice, while calling a function on that `null` value g

Re: [PHP-DEV] [RFC] Pre-draft for PipeOp v2

2017-09-20 Thread Christoph M. Becker
On 20.09.2017 at 18:52, Derick Rethans wrote: > On Wed, 20 Sep 2017, Nikita Popov wrote: > >> I think this feature makes very little sense if it's not introduced >> together with a way of making partial application much more ergonomic than >> it is now. > > What do you mean here by "partial appl

Re: [PHP-DEV] Confusing type mismatch error messages

2017-09-20 Thread ilija . tovilo
> And actually, I still would be surprised to see such an error message. This happens when you annotate your function incorrectly: https://3v4l.org/CoUss On 20 Sep 2017, 19:08 +0200, Christoph M. Becker , wrote: > On 20.09.2017 at 18:54, Derick Rethans wrote: > > > On Wed, 20 Sep 2017, Christoph

Re: [PHP-DEV] Confusing type mismatch error messages

2017-09-20 Thread Christoph M. Becker
On 20.09.2017 at 18:54, Derick Rethans wrote: > On Wed, 20 Sep 2017, Christoph M. Becker wrote: > >> This issue has been filed as , and Adam >> submitted to fix that, but >> David hinted at the potential BC break, and Joe close

[PHP-DEV] [RFC] Consistent null behaviour

2017-09-20 Thread ilija . tovilo
Hi everybody! To my surprise, I noticed today that an array access on a `null` value returns `null` without any warning whatsoever. Accessing the property of a `null` value gives you a notice, while calling a function on that `null` value gives you a fatal error. https://3v4l.org/ZSZHN This is

Re: [PHP-DEV] Confusing type mismatch error messages

2017-09-20 Thread Derick Rethans
On Wed, 20 Sep 2017, Christoph M. Becker wrote: > Hi everybody! > > If a type declaration inadvertently uses `boolean` or `integer` (instead > of `bool` and `int`, respectively), the error message is rather confusing: > > […] must be an instance of boolean, boolean given, […] > > This issue h

Re: [PHP-DEV] [RFC] Pre-draft for PipeOp v2

2017-09-20 Thread Derick Rethans
On Wed, 20 Sep 2017, Nikita Popov wrote: > On Wed, Sep 20, 2017 at 6:32 AM, Sara Golemon wrote: > > > I was planning to update the RFC, but wiki.php.net is having issues > > atm and isn't coming back up with basic coaxing, so I'll just start > > discussion informally, and the RFC can be updates

[PHP-DEV] Confusing type mismatch error messages

2017-09-20 Thread Christoph M. Becker
Hi everybody! If a type declaration inadvertently uses `boolean` or `integer` (instead of `bool` and `int`, respectively), the error message is rather confusing: […] must be an instance of boolean, boolean given, […] This issue has been filed as , and Adam submitted

Re: [PHP-DEV] [RFC] Pre-draft for PipeOp v2

2017-09-20 Thread Ilija Tovilo
Agree. Even if we already had partial application the previously suggested syntax is still more readable IMO. Consider the following example: ``` $array   |> array_map(function ($element) { ... }, $$); ``` vs ``` $array   |> apply(flip('array_map'), function ($element) { ... }); ``` Not to m

Re: [PHP-DEV] Deprecate and remove case-insensitive constants?

2017-09-20 Thread Jay B
> > That may be uncool, but the only problem it causes is in the tiny minds of > OCD sufferers. > Once again, you are being derogatory and continue to label others, who do not share your opinion, with a mental health condition. As you have been told previously (thread - https://externals. io/mess

Re: [PHP-DEV] Deprecate and remove case-insensitive constants?

2017-09-20 Thread li...@rhsoft.net
Am 20.09.2017 um 11:30 schrieb Tony Marston: wrote in message news:098adca8-6897-929d-90e4-cc464f0e2...@rhsoft.net... Am 19.09.2017 um 11:24 schrieb Tony Marston: If the single character  "ß" represents two "s" characters joined together, then the uppercase equivalent should also be a sing

Re: [PHP-DEV] Deprecate and remove case-insensitive constants?

2017-09-20 Thread Lester Caine
On 20/09/17 10:30, Tony Marston wrote: > When it comes to software case insensitivity has been the standard since > day 1. When searching for a file in MS Windows you do not have to > specify case as it is not possible to have different files with the same > name but different mixtures of case. Wh

Re: [PHP-DEV] [RFC] Pre-draft for PipeOp v2

2017-09-20 Thread Nikita Popov
On Wed, Sep 20, 2017 at 6:32 AM, Sara Golemon wrote: > I was planning to update the RFC, but wiki.php.net is having issues > atm and isn't coming back up with basic coaxing, so I'll just start > discussion informally, and the RFC can be updates later. > > Background: I made an RFC some time ago t

Re: [PHP-DEV] Progress or just 'a mess'?

2017-09-20 Thread Lester Caine
On 20/09/17 08:26, Stanislav Malyshev wrote: >> picking up on the base problem? Just what character set is PHP7 designed >> to work with. > > What do you mean by "work with"? Actually that HAS already been identified in this thread, and it is only the basic ASCII character set, but this is not ac

Re: [PHP-DEV] Deprecate and remove case-insensitive constants?

2017-09-20 Thread Tony Marston
wrote in message news:098adca8-6897-929d-90e4-cc464f0e2...@rhsoft.net... Am 19.09.2017 um 11:24 schrieb Tony Marston: If the single character "ß" represents two "s" characters joined together, then the uppercase equivalent should also be a single character which looks like two "S" character

Re: [PHP-DEV] Progress or just 'a mess'?

2017-09-20 Thread Stanislav Malyshev
Hi! > picking up on the base problem? Just what character set is PHP7 designed > to work with. What do you mean by "work with"? > For PHP8 is it not time to lay out a similar set of rules as provided by > SQL and identify just what 'case-insensitive' means and where it does apply? I'm not sure