[PHP-DEV] Re: [RFC] Unicode Text Processing

2022-12-15 Thread Daniel Wolfe
On 2022-12-15 8:34 AM, Derick Rethans wrote: Hi, I have just published an initial draft of the "Unicode Text Processing" RFC, a proposal to have performant unicode text processing always available to PHP users, by introducing a new "Text" class. You can find it at: https://wiki.php.net/rfc/unic

[PHP-DEV] karma

2022-09-12 Thread Daniel Wolfe
Hello, At some point in the near future, I’d like to submit an RFC. Could anyone please grant me karma? My username is dwo. Thank you in advance. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] Proposal for floored division and modulo functions

2022-08-23 Thread Daniel Wolfe
On 2022-08-22 11:49 AM, David Gebler wrote: The bit I think I might not like is these being functions, floor_div and floor_mod. They may be easily confused with the similarly named and existing fdiv and fmod functions. Wouldn't new operators, // and %% respectively, be preferable? Speaking to

Re: [PHP-DEV] Proposal for floored division and modulo functions

2022-08-21 Thread Daniel Wolfe
On 2022-08-21 3:59 PM, Rowan Tommins wrote: Could you give some quick examples of when these functions would give different answers, and why someone might need / want the "floor" variants? My hobby is fiddling with calendrical calculations, and, if you need a perfect subject area where the fl

[PHP-DEV] Proposal for floored division and modulo functions

2022-08-21 Thread Daniel Wolfe
Hello, Before I submit an RFC, I’d like to see what others’ thoughts are. Should PHP implement functions for floor division and floor modulo? To keep it simple, in some programming languages such as PHP and C, the result of integer division will be rounded towards zero, and result of the modulo