Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101488 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64727 invoked from network); 2 Jan 2018 13:37:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jan 2018 13:37:50 -0000 Authentication-Results: pb1.pair.com header.from=t.carnage@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=t.carnage@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.41 as permitted sender) X-PHP-List-Original-Sender: t.carnage@gmail.com X-Host-Fingerprint: 209.85.215.41 mail-lf0-f41.google.com Received: from [209.85.215.41] ([209.85.215.41:42298] helo=mail-lf0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5B/56-23177-92B8B4A5 for ; Tue, 02 Jan 2018 08:37:48 -0500 Received: by mail-lf0-f41.google.com with SMTP id e27so20862038lfb.9 for ; Tue, 02 Jan 2018 05:37:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bQLwVixpa05wyq8gZT9qIJkggT211B980Jr6F878EVM=; b=CUeRA4UjMvfKc84E6sDvxyMtQ16mTSmm44N5IINQWGVtcByMQDzle0DrMPP1DXUS3J j7QDr4QmURYIXBrBH1Ozgvzn7RFCnB4MFKz1ahPXMMBzBk3eeLoHTdul74oCYJfuDHG9 b0mqvSz8JD8LKvg9K0+NyFvKgSMpsmHYBqMJfmDpqdlzH/BrtLXy2M2hmh5wBBvj9lbU MyMT1EDKl//GdTmIqqYwD7I6HO5qAGqMhmM5OsY6PL1wGMWx23rIBdE/LbHiq+bxASfO uWWGMpxR+u8eYobv+gouU/k8qXVHrHcQnTsNZTTZm8WTfL69hRoPUnQsXVZWiAM7zLPU 9wDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bQLwVixpa05wyq8gZT9qIJkggT211B980Jr6F878EVM=; b=basxSRWo+uqWy0PtcvIjNqCUkxzOm05GFxeQEE0fKyVHjMoQ82R8MiMIMh6RMlOJ4M Hrk3DExLnREppXYg3qHPHZFZVM8SCL9GZSMX4KrIxnB9SEKHcjLIukLSbc9ndfxYbcXp +APLv5mBn7FpgbShFm5U3YS7eqMoRAL7PIQuoOqIzE9cmXOFrvUsJOUhAEfnasFP2KMR CMD5nt3n8MAeMLcpz/p3d3Yax56tKdNODNKvvLxToBGZn7QQn8x+XFQko5gxZD6DC198 Zjz7/RMeciMA0t6laTMMsMJZJJTQdq6/4WsUWcSS3Sgsoe5o+g4tao/9sqBDN9ors6kU gcag== X-Gm-Message-State: AKGB3mKOcbiOh9Ks4Oau5BTVqdMxcTQNbZVWf/FUMw6v+csCuGyYxCua SZC5Py/m1ZPBcExFqmf9PbqSTsPrFQULSIvLDiA= X-Google-Smtp-Source: ACJfBotr048lld/n5V8ndwefJ5wxspk2otVpCwhNxz02fRy4kh3quvPpfdbiUBjNTa6z/G96FEpYT+XoWmWN0L/7IZA= X-Received: by 10.25.19.154 with SMTP id 26mr19960529lft.69.1514900261983; Tue, 02 Jan 2018 05:37:41 -0800 (PST) MIME-Version: 1.0 References: <72392123-d37b-26df-6886-218f48205f8a@fleshgrinder.com> <58A5ABDF-AA25-46D4-83E7-4DE72E3DFF5E@gmail.com> <757270790.33iDQ9MZ2V@vulcan> <4b55eed1-8656-ff70-e4e9-ad5e40213405@rhsoft.net> <73.EE.47595.179574A5@pb1.pair.com> <50caeb2d-62b6-167d-726e-e0e11ea201f3@lsces.co.uk> <28ba9e6a-a3f2-2547-d294-f3a1710d5337@rhsoft.net> <14.A3.47595.2FAB84A5@pb1.pair.com> <74f95e45-ae2c-e581-f6ba-f484d1af90d1@lsces.co.uk> In-Reply-To: Date: Tue, 02 Jan 2018 13:37:30 +0000 Message-ID: To: Tony Marston Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="001a113f2166fc5e4c0561cb33c7" Subject: Re: [PHP-DEV] [RFC] [DISCUSSION] Scalar Pseudo-type From: t.carnage@gmail.com (Chris Riley) --001a113f2166fc5e4c0561cb33c7 Content-Type: text/plain; charset="UTF-8" Hi, How useful is "scalar" as a type hint? I'm not sure it provides any benefit over "mixed". Would it not be better to copy Hack and instead introduce two type hints: "num" (or "number") which is int|float and "arraykey" which is string|int? To me, these are much more useful pseudo types than "scalar" which gives me no usable guarantees over the type of data a function/method is receiving. ~C On Tue, 2 Jan 2018 at 08:38 Tony Marston wrote: > "Lester Caine" wrote in message > news:a1bb2452-3969-ca72-cf19-4ca4bcd9074d@lsces.co.uk... > > > >On 31/12/17 22:45, Michael Morris wrote: > >> Please do not quote large swaths of Tony Marston's crap. He's an > >> unrepentant liar, braggart and trouble maker that most of the list has > >> on ignore since the admins can't be bothered to do their job and kick > >> him. > > > > Just because you don't like what I write does not give you reason to call > it > crap. > > You call me an unrepentant liar - can you point to anything that I have > said > that has proven to be a lie? > > You call me a braggart - but at least I have a code base that is still > going > strong after 15 years without using any of those optional extras that have > been added to the language starting with PHP 5. > > You call me a trouble maker - what trouble have I made and for whom? > > You should learn to keep your insults to yourself. > > -- > Tony Marston > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --001a113f2166fc5e4c0561cb33c7--