Re: Re: Any interest in a list type?

From: Date: Thu, 23 Apr 2020 04:32:03 +0000
Subject: Re: Re: Any interest in a list type?
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-109796@lists.php.net to get a copy of this message
> For simplicity's sake I haven't > implemented a type declaration right now, just an is_list() function, > but it could easily be extended to one This is a crucial question – should is_list function like is_numeric($some_string), where is_list just tells you about the keys in the array at a given point in the program, or should it function like is_int, where it tells you about the type. I lean towards the latter (which would make the implementation of is_list simpler, but would complicate everything else.

« previous php.internals (#109796) next »