Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62179 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17088 invoked from network); 15 Aug 2012 10:01:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Aug 2012 10:01:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=sv_forums@fmethod.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=sv_forums@fmethod.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fmethod.com from 209.85.214.42 cause and error) X-PHP-List-Original-Sender: sv_forums@fmethod.com X-Host-Fingerprint: 209.85.214.42 mail-bk0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:56072] helo=mail-bk0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7B/64-30529-2937B205 for ; Wed, 15 Aug 2012 06:01:55 -0400 Received: by bkcjm19 with SMTP id jm19so486003bkc.29 for ; Wed, 15 Aug 2012 03:01:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:from:to:cc:references:subject:date:mime-version :content-type:content-transfer-encoding:x-priority:x-msmail-priority :x-mailer:x-mimeole:x-gm-message-state; bh=PSVW8lNakpVBuNVjEfG0pcxJoV/7k7owF+ZBM/aL9T8=; b=ddf1D09YyteP5XVjxpqbedPpIVe4Yc0IvvrvZZI8tlVOdlCizx11tDWUIj0rW7XHtr jgKCL1P9/eG8MzsG6YYSCLcnYxi7uFNMH3gGEmhqqZY7F0MaU0tnrpwgV5vUKe5Msiec zIr/m4BNn4iW7CkBzuzKV3I3vu0otxDPva5aWfKvgVou+u6YElhgfy6iWQ9uH86pnbPd 30W/IkTLclezD5QQplkXjfHPeEIUh5khPDK7vnfK4+qsg0nh0NKo1jdZoees4MFDhlPM wJbD/Y2KAlcI71jnvqXNCs2WRfp7ZkIwfN7byn0U9TMqUtGZ4xgDwr+13z/10EmH7M1J NNDQ== Received: by 10.205.135.6 with SMTP id ie6mr7301851bkc.139.1345024912085; Wed, 15 Aug 2012 03:01:52 -0700 (PDT) Received: from pc (95-42-66-13.btc-net.bg. [95.42.66.13]) by mx.google.com with ESMTPS id n17sm493494bks.6.2012.08.15.03.01.50 (version=SSLv3 cipher=OTHER); Wed, 15 Aug 2012 03:01:51 -0700 (PDT) Message-ID: <58A080733FC04ABDA51989286868DFC3@pc> To: "Nikita Popov" Cc: "Stas Malyshev" , References: <502A86AA.2030203@sugarcrm.com><502B57AE.4070801@sugarcrm.com><502B5C7F.1070708@sugarcrm.com><6D84602D0F514FA3B82C11DBAF58AA53@pc><502B5F8A.5000500@sugarcrm.com><6281E4639C7248488268ACED88B86B7D@pc><502B669E.7040702@sugarcrm.com><1583D6716BFA4BF985E795A1363F465E@pc> Date: Wed, 15 Aug 2012 13:01:47 +0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Gm-Message-State: ALoCoQmdIbT4yGJTXKxQzwrg3AMQVQdSnEMVjdhWqWD6KOmhRMB/QCN0/gaxr1aJnC/bCcmTltyA Subject: Re: [PHP-DEV] Inline typecasting / typehinting for classes and interfaces From: sv_forums@fmethod.com ("Stan Vass") > But "variable" typehints > don't serve any such purpose. Actually, one could even say that they > don't serve *any* purpose, short of providing the IDE with type > information, because your code would work just as well even without > the type check. If the type were wrong, it would just throw a fatal > error when trying to do something with it (like invoking a method that > does not exist). Just like with argument typehints. Point me to an argument typehint that is required for your code to run. You and Stas keep giving arguments against argument typehints, which is really awkward. Stan