Re: [PHP-DEV] [RFC] Auto-capture multi-line closures and shortfunctions take 2

2021-03-26 Thread Nuno Maduro
Rowan, I've just added a few more tests with the exact examples you have presented in this mail list: https://github.com/php/php-src/pull/6246/commits/c3a50d671c5d8fa4b775ec67fe77d0cbd5cc8030 . On Fri, 26 Mar 2021 at 16:48, Olle Härstedt wrote: > 2021-03-26 17:11 GMT+01:00, Mike Schinkel : > >>

Re: [PHP-DEV] Making "match" catch exceptions

2021-03-26 Thread Olle Härstedt
2021-03-26 23:00 GMT+01:00, Rowan Tommins : > On 26/03/2021 16:45, Olle Härstedt wrote: >> That made me think of a recent >> extension to OCaml which makes it possible to catch exceptions in a >> match-expressions (here's one blog post about it: >> https://blog.janestreet.com/pattern-matching-and-e

Re: [PHP-DEV] Making "match" catch exceptions

2021-03-26 Thread Rowan Tommins
On 26/03/2021 16:45, Olle Härstedt wrote: That made me think of a recent extension to OCaml which makes it possible to catch exceptions in a match-expressions (here's one blog post about it: https://blog.janestreet.com/pattern-matching-and-exception-handling-unite/). That's an interesting idea

Re: [PHP-DEV] [RFC] Auto-capture multi-line closures and shortfunctions take 2

2021-03-26 Thread Olle Härstedt
2021-03-26 17:11 GMT+01:00, Mike Schinkel : >> On Mar 26, 2021, at 8:12 AM, Olle Härstedt >> wrote: >> >> 2021-03-26 3:38 GMT+01:00, Mike Schinkel : >>> >>> On Mar 25, 2021, at 4:09 PM, Olle Härstedt wrote: 2021-03-25 17:49 GMT+01:00, Mike Schinkel : >> On Mar 25, 2021, at

[PHP-DEV] Making "match" catch exceptions

2021-03-26 Thread Olle Härstedt
Hi, Someone mentioned that they prefer lambdas over try-catch blocks, which surprised me, since try-catch is completely idiomatic in both PHP and OCaml (Haskell I don't know). That made me think of a recent extension to OCaml which makes it possible to catch exceptions in a match-expressions (here

[PHP-DEV] Re: Improvements to PDO_ODBC

2021-03-26 Thread Christoph M. Becker
Hi Calvin! On 26.03.2021 at 15:51, Calvin Buckley wrote: > I've been looking into improving PDO_ODBC; specifically, bringing it up > to parity with other drivers, as well as dealing with its quirks. The > company I work for supports PHP on IBM i, and while we maintain the > native database driver

Re: [PHP-DEV] [RFC] Auto-capture multi-line closures and shortfunctions take 2

2021-03-26 Thread Mike Schinkel
> On Mar 26, 2021, at 8:12 AM, Olle Härstedt wrote: > > 2021-03-26 3:38 GMT+01:00, Mike Schinkel : >> >> >>> On Mar 25, 2021, at 4:09 PM, Olle Härstedt >>> wrote: >>> >>> 2021-03-25 17:49 GMT+01:00, Mike Schinkel : > On Mar 25, 2021, at 11:22 AM, Olle Härstedt > wrote: > > 2

[PHP-DEV] Improvements to PDO_ODBC

2021-03-26 Thread Calvin Buckley
Hello internals@, I've been looking into improving PDO_ODBC; specifically, bringing it up to parity with other drivers, as well as dealing with its quirks. The company I work for supports PHP on IBM i, and while we maintain the native database drivers for the platform, we (and IBM) have been recom

[PHP-DEV] Re: [RFC] Deprecations for PHP 8.1

2021-03-26 Thread Christoph M. Becker
On 22.03.2021 at 10:24, Nikita Popov wrote: > It's time for another deprecation RFC: > https://wiki.php.net/rfc/deprecations_php_8_1 > > As we're still early in the release cycle, it's still possible to add > additional deprecation candidates, given reasoning for the deprecation, as > well as avai

Re: [PHP-DEV] [RFC] Auto-capture multi-line closures and shortfunctions take 2

2021-03-26 Thread Olle Härstedt
2021-03-26 3:38 GMT+01:00, Mike Schinkel : > > >> On Mar 25, 2021, at 4:09 PM, Olle Härstedt >> wrote: >> >> 2021-03-25 17:49 GMT+01:00, Mike Schinkel : On Mar 25, 2021, at 11:22 AM, Olle Härstedt wrote: 2021-03-25 16:02 GMT+01:00, Mike Schinkel : > > >> On Mar 25,