Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75228 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36532 invoked from network); 3 Jul 2014 12:17:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jul 2014 12:17:56 -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.219.46 as permitted sender) X-PHP-List-Original-Sender: narf@devilix.net X-Host-Fingerprint: 209.85.219.46 mail-oa0-f46.google.com Received: from [209.85.219.46] ([209.85.219.46:39334] helo=mail-oa0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9A/73-47713-4F945B35 for ; Thu, 03 Jul 2014 08:17:56 -0400 Received: by mail-oa0-f46.google.com with SMTP id m1so93103oag.5 for ; Thu, 03 Jul 2014 05:17:53 -0700 (PDT) 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=UC+W+TI3iBW8Md8yfKtLG2vFN73o7ZHOgHvO7WeAEY8=; b=H9K/ruuL8STAoEbpcrwG+EJ+Cs1eZEWFiTTiz58NeZVjS6LkdlTiKdVxpvTrBRR47x 3VFOijlxUr+BXdbF8RPu4hWVDwXFo9kFOpLtwug7X6yT10Xxfo7zStSxsQn5ydkXmgIB rHTcSuoNpjyhgTYKaQ9ZTBPQfHoqAaKUbHIXk= 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=UC+W+TI3iBW8Md8yfKtLG2vFN73o7ZHOgHvO7WeAEY8=; b=dir3ByGVhEVJXbnkx3myU8o2pXABE86B52gf2oTSpzxuXDdSnwaw3sj/GSFc4HLAEv aOYNdA3cWjKTcH3zLpDerY0fELOkIa7d8Iu5hIM+tElX52d/hLrzwsSI6InFGYRXMj00 5/8IfY6UKg/QiE34gQ2MghqxBleitQYjeLlcWp//quO2/WJh5zhxvqhQDjlqkblDLOOR xRIeLy5e/Wn48jbThRJpNwoPjsR4MGfB/YssEw8Bfb4wO2wFScHzWDyns5rw03i5pxpL YDkjTZfATpbinUClBKY8Dab1/f0bhGLloH0OPBERP+pwl9q2uVaWtBHFos5vrIyEx0c5 SzBQ== X-Gm-Message-State: ALoCoQk6vPJ4+CbGnGSNhAem7Jb9I+2vMQqQn+zolJ3PotmN1owxIp5LnbS6uPcAJN6rbLvGWemy MIME-Version: 1.0 X-Received: by 10.60.52.226 with SMTP id w2mr4185152oeo.3.1404389873648; Thu, 03 Jul 2014 05:17:53 -0700 (PDT) Received: by 10.202.85.79 with HTTP; Thu, 3 Jul 2014 05:17:53 -0700 (PDT) In-Reply-To: References: Date: Thu, 3 Jul 2014 15:17:53 +0300 Message-ID: To: Xen Cc: Pierre Joye , PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] not_null function From: narf@devilix.net (Andrey Andreev) Hi, On Thu, Jul 3, 2014 at 2:47 PM, Xen wrote: > As > to the "practical" implications that Andrey Andreeve mentioned in his reply. > > I shall not reply to that message, but if you insist on arguing that > semantics are irrelevant to any degree, you are basically arguing that there > is a good reason to make language harder to understand, read and write > because of some other reason that has nothing to do with it (like how many > constructs already exist). This is exactly what I meant by "extreme". I've never said that semantics are irrelevant, yet you're taking something that you don't like about my opinion and you're twisting it into something completely different. You can do "not_null" in any of the following ways: $var !== null ! is_null($var) isset($var) ! empty($var) I said, in the context of this thread, that semantics alone can't justify the existance of yet another way to achieve the same goal. Quite frankly, the idea that a programmer, regardless of knowledge or experience, wouldn't be able to easily understand any of the above 4 expressions is absurd. Cheers, Andrey.