Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81888 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22398 invoked from network); 5 Feb 2015 09:51:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2015 09:51:18 -0000 Authentication-Results: pb1.pair.com smtp.mail=narf@devilix.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=narf@devilix.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain devilix.net designates 209.85.214.179 as permitted sender) X-PHP-List-Original-Sender: narf@devilix.net X-Host-Fingerprint: 209.85.214.179 mail-ob0-f179.google.com Received: from [209.85.214.179] ([209.85.214.179:42769] helo=mail-ob0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 78/DC-51979-41D33D45 for ; Thu, 05 Feb 2015 04:51:18 -0500 Received: by mail-ob0-f179.google.com with SMTP id wp4so6147496obc.10 for ; Thu, 05 Feb 2015 01:51:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=devilix.net; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=T3hS2qSGi+donN4GtBHlPJ+tQMyhfIDfuAHnbV9Sqys=; b=uKOXqiEuP9+2H+SNJC0xvCVXoXSQ0ovk6DUwfCAXhjCCt3MxVK+DNQscsoXgGVR+cr hSnpzvaxc8l0SSRxyOli1XAmooWbjCX6DlGm0SetT4YaB5FYZgjIwLq5x+DAKUZ9EGv8 tH8YuRHELO/u+99sPcRkhSHhNIJMNMKEboMN4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=T3hS2qSGi+donN4GtBHlPJ+tQMyhfIDfuAHnbV9Sqys=; b=luTrRaHhWsyAV1qAhjt1uuu6Gwuujl3uTxO3IRe3byp7T4+PBqw7lwbQIv26X7/GsX +tjb+5gzSrrUjqyOXOsBqTlP+Ee2KEPXzEF6eXWBnV2Hi9LEYEN7leAvxD5raQuwwiOj n09OEqWoEqBckwpOPDmTkpBr0rboapS3I8ZILp3el4icD9E/H8Dcu9n1oeW+HlcwWCjI Q3387PhiXOtEuMZ/EhyKmBiblc7yX3ua2O88VhemdQNvOe8KMWfU7dbEOJtWky3md8Ir oXLxmbiOXT7dWMvTEOO5m7UD5QV+cmKlvLBrSwmQ7GGu6LGyhxOliB5lcXPYVRLba0zv YdYg== X-Gm-Message-State: ALoCoQkbd74as8c3OIYqHCw3CU1q6tM3rHDITQ3gc9Y1gz6YnP9/fcpSmkFCJwcloZtRnHCeV93G MIME-Version: 1.0 X-Received: by 10.202.64.9 with SMTP id n9mr1678293oia.20.1423129873166; Thu, 05 Feb 2015 01:51:13 -0800 (PST) Received: by 10.202.214.205 with HTTP; Thu, 5 Feb 2015 01:51:12 -0800 (PST) In-Reply-To: <54D31A25.3040905@gmail.com> References: <00c101d04049$ca411ec0$5ec35c40$@tekwire.net> <54D1CA7C.8060204@php.net> <54D1E6EC.7060702@php.net> <54D2B3FA.6020900@gmail.com> <54D2C018.6050803@gmail.com> <54D31A25.3040905@gmail.com> Date: Thu, 5 Feb 2015 11:51:12 +0200 Message-ID: To: Stanislav Malyshev Cc: Sebastian Bergmann , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] What do we need strict scalar type hints for? From: narf@devilix.net (Andrey Andreev) Hi, On Thu, Feb 5, 2015 at 9:22 AM, Stanislav Malyshev wrote: > Hi! > >> True, but obviously, us who want strict typehints want to be able to do this: > > Obviously, but it doesn't mean whole language should be changed to serve > one use case, especially the one that goes contrary to what happened in > PHP for decades. I never suggested that. The only reason I replied to you is because you're saying it changes the whole language, and I explicitly said I'm not in favor of only strict types, just as I'm against having only weak types. I just want that one use case to be satisfied, without changing how the rest of the language works. Cheers, Andrey.