Aidan,
Fantastic suggestion (@as) -- that is really the succinctness I was
initially looking for, and I think the intention makes a lot of sense. My
only concern/issue would be to make sure that isn't considered a
'suppressor' -- but it's actual intent is to skip the execution of the
foreach to pr
Results for project PHP master, build date 2017-07-11 10:24:17-07:00
commit: 8a287c0
previous commit:e24a801
revision date: 2017-07-11 17:01:59+02:00
environment:Haswell-EP
cpu:Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz 2x18 cores,
stepping 2, LLC 45 MB
On Tue, Jul 11, 2017 at 11:53 PM, Andrea Faulds wrote:
> Hi everyone,
>
> There seems no reason not to put this to a vote, so I have:
>
> https://wiki.php.net/rfc/unary_null_coalescing_operator
>
> Voting starts immediately and ends in 7 days' time, so 2017-07-18.
>
> Thanks!
>
Voting no on this
Hi everyone,
There seems no reason not to put this to a vote, so I have:
https://wiki.php.net/rfc/unary_null_coalescing_operator
Voting starts immediately and ends in 7 days' time, so 2017-07-18.
Thanks!
--
Andrea Faulds
https://ajf.me/
--
PHP Internals - PHP Runtime Development Mailing List
> Just to clarify, that means object ids are still re-used between
> objects if one gets destroyed?
> The initial bug report was about creating a second function that solves this
> problem.
Correct. This is intended to return the object handles.
The most recent discussion from 2015 was only a
If you were willing to accept
```
foreach ($foo as $bar) if (is_array) {
...
}
```
as a solution, then you might as well use
```
if (is_array($foo)) foreach ($foo as $bar) {
...
}
```
I wonder if this could be better achieved by expanding what the error
suppression operator `@` can do? This ent
Oops, I actually meant to suggest the syntax `“Hello \{world()}”` (note:
curlies instead of parens) to be closer to the original syntax.
Regards,
Ilija
On 11 Jul 2017, 21:10 +0200, ilija.tov...@me.com, wrote:
> Hi everyone
>
> String interpolations are a great feature. They make your code more
Hi everyone
String interpolations are a great feature. They make your code more readable
and can reduce the number of allocations PHP has to make.
Unfortunately, PHP is very restrictive in what kind of expressions string
interpolation accepts. The only time you can actually use it is if your
e
Thanks for the great feedback.
Based on the last mindset on keyword syntax, this comes to mind, intended
to be used similarly to the 'use' keyword when used within the context of a
closure:
foreach ($foo as $bar) if (is_array) {
...
}
I don't think this is a vast improvement over wrapping this
On 11 July 2017 16:02:18 BST, Mark Shust wrote:
>For a syntactic
>sugar/improvement, this can be shorthand for executing the loop instead
>of
>wrapping the block within an is_array check:
>
>
>
>$foo = "abc";
>
>foreach (??$foo as $bar) {
>
> echo $bar;
>
>}
Hi!
I think there's definitely the s
Hello :-),
Thank you for the proposal. I have a question though: How is it
different from:
* `foreach ($foo ?: [] as $bar) { … }` if `$foo` does not exist,
* `foreach ((array) $foo as $bar) { … }` if `$foo` is not an array.
I understand your issue, but you can probably type your data with
`
2017-07-11 18:34 GMT+02:00 Jakub Zelenka :
> On Mon, Jul 10, 2017 at 9:54 PM, Anatol Belski
> wrote:
>
> > Hi,
> >
> > > -Original Message-
> > > From: Anatol Belski [mailto:weltl...@outlook.de]
> > > Sent: Thursday, July 6, 2017 4:52 PM
> > > To: Niklas Keller
> > > Cc: Sara Golemon ; J
On Tue, Jul 11, 2017 at 12:21 PM, Nikita Popov wrote:
> On Tue, Jul 11, 2017 at 11:52 AM, Marco Pivetta
> wrote:
>
> > Asking here, since it's not clear to me: is this a good/fitting
> > replacement for `spl_object_hash()`?
> >
> > On 11 Jul 2017 7:00 AM, "tyson andre" wrote:
> >
> >> >> How lo
On Mon, Jul 10, 2017 at 9:54 PM, Anatol Belski wrote:
> Hi,
>
> > -Original Message-
> > From: Anatol Belski [mailto:weltl...@outlook.de]
> > Sent: Thursday, July 6, 2017 4:52 PM
> > To: Niklas Keller
> > Cc: Sara Golemon ; Jakub Zelenka ; PHP
> > Internals
> > Subject: RE: [PHP-DEV] Re
The idea is good, but I don't know if it is more clear than an 'if()'
Em 11 de jul de 2017 12:15 PM, "Mark Shust" escreveu:
> Hello,
>
> I wanted to garnish feedback on a RFC proposal. This is just a concept at
> this point, and is inspired by the null coalesce operator.
>
> Code will error if a
Hello,
I wanted to garnish feedback on a RFC proposal. This is just a concept at
this point, and is inspired by the null coalesce operator.
Code will error if a non-array value is passed through a looping feature.
For example, this code:
On Tue, Jul 4, 2017 at 8:01 PM, tyson andre wrote:
> I'm unsure if an RFC is necessary. I have two pending questions.
>
Unless someone insists upon it, I'll put my release manager hat on and
say I'm fine with it just going in without an RFC.
-Sara
--
PHP Internals - PHP Runtime Development Mail
On Tue, Jul 11, 2017 at 11:52 AM, Marco Pivetta wrote:
> Asking here, since it's not clear to me: is this a good/fitting
> replacement for `spl_object_hash()`?
>
> On 11 Jul 2017 7:00 AM, "tyson andre" wrote:
>
>> >> How long should I wait to see if there are objections before creating
>> a pull
Asking here, since it's not clear to me: is this a good/fitting replacement
for `spl_object_hash()`?
On 11 Jul 2017 7:00 AM, "tyson andre" wrote:
> >> How long should I wait to see if there are objections before creating a
> pull request?
> >AFAIK you can create PR any time.
>
> I created a PR i
19 matches
Mail list logo