Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80072 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87433 invoked from network); 2 Jan 2015 00:01:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jan 2015 00:01:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.176 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.214.176 mail-ob0-f176.google.com Received: from [209.85.214.176] ([209.85.214.176:34487] helo=mail-ob0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 34/B0-18015-9DFD5A45 for ; Thu, 01 Jan 2015 19:01:30 -0500 Received: by mail-ob0-f176.google.com with SMTP id vb8so51971790obc.7 for ; Thu, 01 Jan 2015 16:01:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=DEZjWDfbGeU8u8St4utNu51XNUFiyg6XZMFXHdBvYmw=; b=eIo+pxaLdtU21oWIt7b3oM40HR0APDKEvKKiEwin19iB2+7DTztO5YvRi5wv7LpZjJ 75YibRvb+9NY800ZsTpDwKHO2xEjPKO83Tt70oXRbd6wUirzsjnNXKOTo4D1viIMVuSA fbsREimFFLN/YCXWwMATVvZBaoaqB8bCqR0rPv9nieDhzQ+2CWIUZHHF78EVTknfmMa7 4p3+for9zx2HwinFNN/TfWzkx5cTUD39sV83wvnzvo/ilxU2ys7QcI4hvsc0uNiBXx5Z QNxvSLZK+syBuV+wXwzxdf8D5QK13Qkt5oNPIybC3LflDTlKGDEvVXIqIaUUlk3QxcVX hxIA== X-Received: by 10.202.178.87 with SMTP id b84mr31874314oif.64.1420156887440; Thu, 01 Jan 2015 16:01:27 -0800 (PST) Received: from Stas-Air.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by mx.google.com with ESMTPSA id d6sm24397559obh.4.2015.01.01.16.01.26 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Jan 2015 16:01:26 -0800 (PST) Message-ID: <54A5DFCE.6030307@gmail.com> Date: Thu, 01 Jan 2015 16:01:18 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Marco Pivetta , Thomas Bley CC: Andrea Faulds , Nikita Popov , PHP Internals List References: <41D5BB0B-73AF-488E-968D-90B2878E3178@ajf.me> <20150101164402.EB1442605AB@dd15934.kasserver.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Scalar Type Hints From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > The problem is that the current proposed hints/casts are deviating from the > type-hints that we are used to, therefore this particular feature should Let's check the manual we're used to. http://php.net/manual/en/function.substr.php string substr ( string $string , int $start [, int $length ] ) What "string" and "int" mean there? How they work? What we're "deviating" from? -- Stas Malyshev smalyshev@gmail.com