Re: [RFC] [DISCUSSION] Scalar Pseudo-type
| From: | Larry Garfield | Date: | Tue, 26 Dec 2017 18:18:12 +0000 |
| Subject: | Re: [RFC] [DISCUSSION] Scalar Pseudo-type | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-101424@lists.php.net to get a copy of this message | ||
On Tuesday, December 26, 2017 9:56:21 AM CST Sebastian Bergmann wrote:
> Am 26.12.2017 um 16:46 schrieb lists@rhsoft.net:
> > would you mind to explain this?
>
> "Foo|Bar", "array|string", etc. (still) make no sense to me.
>
> "scalar" makes sense to me although it is but an alias for
> "bool|float|int|string".
If I may, I think the argument has always been that
1) Foo & Bar makes total sense
2) int|float makes total sense
3) int & string is illogical so wouldn't matter anyway
4) Foo|Bar rarely makes sense but may sometimes, and its legality is an
acceptable trade-off to get the first two.
In previous discussions it always seemed that people fixated on case 4 and
ignored the usefulness of cases 1 and 2.
--Larry Garfield
Attachment: [application/pgp-signature] This is a digitally signed message part. signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part. signature.asc