Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61938 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15662 invoked from network); 1 Aug 2012 18:25:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Aug 2012 18:25:21 -0000 Authentication-Results: pb1.pair.com header.from=alex.aulbach@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=alex.aulbach@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.170 as permitted sender) X-PHP-List-Original-Sender: alex.aulbach@gmail.com X-Host-Fingerprint: 209.85.213.170 mail-yx0-f170.google.com Received: from [209.85.213.170] ([209.85.213.170:37869] helo=mail-yx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 34/2F-32875-09479105 for ; Wed, 01 Aug 2012 14:25:21 -0400 Received: by yenl12 with SMTP id l12so8712133yen.29 for ; Wed, 01 Aug 2012 11:25:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=eHj1gODD/aC0lFACXem8M/jdtLmc8aldGVpOcOXdvb0=; b=o2Dy0QjSbjPqrgUu5qbm7BpRV0I0qIsRrSqaJrFyzwEpvqh4DXN5Mk4KLej7ogwsUJ /q8HDeDgD59r5mpXzh45N5Hu5dAzgLyiQ7U3tIVslqGczNvTGBBaMHSuOJDyWbzqGS2H ANdYCm3nQCo7motghsNt+29T3bqpLOi1oqvIabfRFeAb96WpL2i4X55UmzhTGq/Ti3S/ N5VhtC3S1IIfHxaLJfcQ/DhisinJasqZxv/Kt1ilRjcCZm0qEuPaYKHdb0EPuiR0jlU0 2nAsSNZKjs7hhWqcZV2syV4fsAsmkpbGrvrNCdMuqoa7yS8G2rjfuSics88ac0dM9bcb 5Uug== MIME-Version: 1.0 Received: by 10.50.184.135 with SMTP id eu7mr5048736igc.15.1343845518352; Wed, 01 Aug 2012 11:25:18 -0700 (PDT) Received: by 10.64.44.234 with HTTP; Wed, 1 Aug 2012 11:25:18 -0700 (PDT) In-Reply-To: <1708AB78DAB340DC8C8D7F54F652EBBF@gmail.com> References: <5009E557.1090906@sugarcrm.com> <1708AB78DAB340DC8C8D7F54F652EBBF@gmail.com> Date: Wed, 1 Aug 2012 20:25:18 +0200 Message-ID: To: Christoph Hochstrasser Cc: Stas Malyshev , "Matthew Weier O'Phinney" , "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Implicit isset in ternary operator From: alex.aulbach@gmail.com (Alex Aulbach) 2012/8/1 Christoph Hochstrasser : > I'm lately using @$var["key"] a lot (despite it's slowness) and I like it a lot. It makes > most code a lot more readable. I would be +1 for it, if we can make it fast. > > I think most people (me included) want only to avoid the notice for accessing undefined array offsets. What if we just remove the notice for accessing undefined array offsets, because it's the most common use case? Getting philosophical. It's the same as if you want to read a page in a book, but that page doesn't exist. For example a book with 40 pages, but you want to read page 42. :) Is it an error to try it? Yes, because if possible without error, you could do the same with the universe and look at a part of it that doesn't exist. Someone has to create it first. :) More serious: For me it's the other way arround, it's one of the best things, that have been introduced, because before it, a very small write error had big impacts. I see - as you - the need to make simple things more short, but removing warnings from existing code constructs is definitly the wrong way. -- Alex Aulbach