Re: [PHP-DEV] Re: "TryX" idom for Enumerations

2021-01-15 Thread Rowan Tommins
On 10/01/2021 22:40, Mark Randall wrote: There is an alternative, of sorts. Something I tried investigating when I first started looking into PHP-SRC, but lack the skill and knowledge to implement myself. A shorthand try / catch of something like the form: ( ResultExpr, ...) Funnily enoug

Re: [PHP-DEV] Re: "TryX" idom for Enumerations

2021-01-10 Thread Larry Garfield
On Sun, Jan 10, 2021, at 4:40 PM, Mark Randall wrote: > On 10/01/2021 21:27, Larry Garfield wrote: > > The "a method that begins with try is nullable, so watch out" idiom is > > present in C# and Rust, but to my knowledge has never existed in PHP. That > > doesn't make it bad; it actually combin