On Thu, Jun 24, 2021 at 9:14 AM Scott Arciszewski <sc...@paragonie.com> wrote:
> On Thu, Jun 24, 2021 at 2:10 AM Stephen Reay <php-li...@koalephant.com> > wrote: > > > I would absolutely make use of a function that tells me if the string > given is in fact from something controlled by the developer. But once that > same string can also include input from the request or the environment or > whatever by nature of integers, the function becomes useless for the stated > purpose. > > Why not two functions then? > > - is_noble_string() -- more restrictive > - is_noble() -- YOLO > I was going to ask basically the same [with different names] a few days ago ("why can't we have both?"), but then remembered https://externals.io/message/114835#114951 , esp. the end: """ And to support having 2 functions, we would need 2 flags on strings. These flags are limited, and managing 2 flags would affect performance. """ Regards, -- Guilliam Xavier