Re: [PHP-DEV] A little syntactic sugar on array_* function calls?

2021-05-25 Thread Iván Arias
Hi all, It sounds like scalar objects by Nikita: https://github.com/<https://github.com/nikic/scalar_objects>nikic<https://github.com/nikic/scalar_objects>/scalar_objects<https://github.com/nikic/scalar_objects> Regards, Iván Arias. Get Outlook for Android<h

RE: [PHP-DEV] [RFC] Shorter attribute syntax

2020-06-04 Thread Iván Arias
oken? I think there are a lot of them we can use, and for sure anyone has its preference; and that’s why I was also suggesting to pick a few of them, vote them in the RFC, and go with the winner. Regards, Iván Arias.

Re: [PHP-DEV] [RFC] Shorter attribute syntax

2020-06-04 Thread Iván Arias
of them rather than a double symbol. Would it be possible to add a multioption vote and let people choose? Regards, Iván Arias.

RE: [PHP-DEV] Draft RFC callable types + callable type/function autoloading

2020-05-26 Thread Iván Arias
t a Little question. I see this other document in the same repo: https://github.com/Danack/FunctionTypes/blob/master/3_referencing_functions_and_callables.md Are you planning to also raise it? As userland developer it really bothers me to type function and method names in strings. Thanks in advance! Un saludo, Iván Ari

Re: [PHP-DEV] Re: [RFC] Attributes v2

2020-04-14 Thread Iván Arias
n. From the RFC: > Attributes are added before the declaration they belong to, similar to > do-block comments. They can be declared before or after a doc-block comment > that documents a declaration. Could annotations be declared before AND after the doc-block? What would be the behavior in that case? Regards, Iván Arias.

RE: [PHP-DEV] [DISCUSSION] Match expression

2020-04-12 Thread Iván Arias
can only be used under some circustances. I think I would prefer to simply do not include them for now, and discuss these “block expressions” in another RFC as they seem to be an independent language feature. Regards, Iván Arias.

Re: [PHP-DEV] [DISCUSSION] Match expression

2020-04-12 Thread Iván Arias
2 => { var(); } // Error, return statement is required } Would be feasible for the fallthrought problem to use “continue” when you really want to chain “cases”? match ($x) { 0 => { // Only for 0 continue; // Same as omitting a break in a traditional switch }, 1 => { // Same for 0 and 1 } } Regards, Iván Arias.

RE: [PHP-DEV] Feature request - allow to append multiple elements to an array

2020-03-29 Thread Iván Arias
posible, 1st for compatibility, but maybe it could be a bit less redundant with the David’s proposed syntax: $arr[] = …[1, 2, 3]; I wonder if it will even better in terms of performance… [1] https://3v4l.org/7rbiX Regards, Iván Arias.

Re: [PHP-DEV] Feature request - allow to append multiple elements to an array

2020-03-29 Thread Iván Arias
Hi all, I think David's syntax make more sense. Maybe we could support multiple arguments for push operator, just like array_push does: $arr[] = 1, 2, 3; // push these 3 values $arr[] = 1, 2, ... [3, 4, 5], 6; // push these 6 values Regards, Iván Arias. Obtener Outlook para Android&