Re: [PHP-DEV] Re: Improving mt_rand() seed

2017-02-01 Thread Yasuo Ohgaki
Hi all, On Mon, Jan 30, 2017 at 7:54 PM, Yasuo Ohgaki wrote: > On Mon, Jan 30, 2017 at 7:47 PM, Yasuo Ohgaki wrote: > >> On Mon, Jan 30, 2017 at 7:41 PM, Lauri Kenttä >> wrote: >> >>> On 2017-01-30 04:25, Yasuo Ohgaki wrote: >>> I'll prepare patch that allows int array initialization

Re: [PHP-DEV] Re: [RFC][Discuss] Arrow Functions

2017-02-01 Thread Rasmus Lerdorf
On Wed, Feb 1, 2017 at 3:06 PM, Rowan Collins wrote: > On 01/02/2017 20:17, Rasmus Lerdorf wrote: > >> You probably think of $var as being a local scope variable here, >> but really it isn't. It is an imported variable that happened to not exist >> in the outer scope and it was assigned a value i

Re: [PHP-DEV] [RFC] Deprecate and Remove Bareword (Unquoted) Strings

2017-02-01 Thread Christoph M. Becker
On 31.01.2017 at 23:49, Johannes Schlüter wrote: > On Tue, 2017-01-31 at 23:46 +0100, Johannes Schlüter wrote: > >> On Sun, 2017-01-29 at 19:33 +, Rowan Collins wrote: >>> Currently, if the constant FROB_ACTIVE is not defined, the code "echo >>> FROB_ACTIVE;" results in an E_NOTICE and the st

Re: [PHP-DEV] Re: [RFC][Discuss] Arrow Functions

2017-02-01 Thread Rowan Collins
On 01/02/2017 20:17, Rasmus Lerdorf wrote: You probably think of $var as being a local scope variable here, but really it isn't. It is an imported variable that happened to not exist in the outer scope and it was assigned a value in the inner scope, but that assignment can't leak back out so it i

Re: [PHP-DEV] Re: [RFC][Discuss] Arrow Functions

2017-02-01 Thread Rasmus Lerdorf
On Wed, Feb 1, 2017 at 8:05 AM, Bruce Weirdan wrote: > On Wed, Feb 01, 2017 at 07:45:50AM -0800, Rasmus Lerdorf wrote: > > The reason it is feasible to do this for single-expression closures in > this > > short form syntax is that you don't typically need a local scope at all > for > > these shor

Re: [PHP-DEV] [RFC] Comparable

2017-02-01 Thread Fleshgrinder
On 2/1/2017 2:44 PM, Rowan Collins wrote: > On 31 January 2017 23:02:07 GMT+00:00, Ryan Pallas > wrote: >> I would say compareTo makes sense, because that's what you're >> asking the method to do. Methods aren't usually past tense as it >> would seem weird. > > To be specific, methods are general

Re: [PHP-DEV] Re: [RFC][Discuss] Arrow Functions

2017-02-01 Thread Bruce Weirdan
On Wed, Feb 01, 2017 at 07:45:50AM -0800, Rasmus Lerdorf wrote: > The reason it is feasible to do this for single-expression closures in this > short form syntax is that you don't typically need a local scope at all for > these short closures and the syntax doesn't convey the idea that you would >

Re: [PHP-DEV] Re: [RFC][Discuss] Arrow Functions

2017-02-01 Thread Rasmus Lerdorf
On Tue, Jan 31, 2017 at 12:41 PM, Andrea Faulds wrote: > > That's the idea. I'd prefer it if auto-capture was not restricted to > single-expression functions (“arrow functions”). Though arrow functions > make most sense with auto-capture, it doesn't need to be stricted to them. This goes against

Re: [PHP-DEV] [RFC] Comparable

2017-02-01 Thread Rowan Collins
On 31 January 2017 23:02:07 GMT+00:00, Ryan Pallas wrote: >I would say compareTo makes sense, because that's what you're asking >the >method to do. Methods aren't usually past tense as it would seem weird. To be specific, methods are generally named as "imperative" phrases, because they are inst