[PHP-DEV] [RFC] FFI Improvements: Consistency and soliving some problems

2020-07-06 Thread Кирилл Несмеянов
Hi all!   I would like to start discussion about the «FFI Improvements» RFC. At the moment, I do not have the right to create wiki page, so I post it on the github:  https://github.com/SerafimArts/php-rfcs/blob/ffi-improvements/rfcs/-ffi-improvements.md   The proposal: - Contains improvemen

Re[2]: [PHP-DEV] [RFC] FFI Improvements: Consistency and soliving some problems

2020-07-09 Thread Кирилл Несмеянов
ent is not very convincing, then as the name of the new function, I would suggest «FFI::fromSource(...)».   >Четверг, 9 июля 2020, 11:01 +03:00 от Dan Ackroyd : >  >On Mon, 6 Jul 2020 at 22:37, Кирилл Несмеянов < n...@xakep.ru > wrote: >> >> I would like to start discussio

Re[2]: [PHP-DEV] The @@ is terrible, are we sure we're OK with it?

2020-07-22 Thread Кирилл Несмеянов
I completely agree with this statement. Moreover, I had to write a full-fledged preprocessor in order to implement library functionality, suitable for both attributes and doctrine annotations (for version 7.4 and below).   Rust-like syntax (#[xxx]) is both visually pleasing and creates much les

[PHP-DEV] The @@ is terrible, are we sure we're OK with it?

2020-07-22 Thread Кирилл Несмеянов
However this syntax allows it to be used on 7.4 unlike any other.   This means that the initial transition of library functionality to it will be very smooth and will not require a separate implementation of polyfills for the syntax of doctrine annotations and attributes.   With any other syntax

[PHP-DEV] PHP 8.1 enum const expressions problem

2021-07-29 Thread Кирилл Несмеянов
Hello internals! I apologize if such a discussion has already taken place, but I didn't find anything like it.   When working with enums, I ran into problems that are currently not resolved.  In some cases, enumerations require self references and constant arithmetic expressions:   enum Example:

Fwd: Re[2]: [PHP-DEV] PHP 8.1 enum const expressions problem

2021-07-29 Thread Кирилл Несмеянов
>> >> Hello internals! I apologize if such a discussion has already taken >> place, but I didn't find anything like it. >>   >> When working with enums, I ran into problems that are currently not >> resolved. In some cases, enumerations require self references and >> constant arithmetic expression