Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66510 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50174 invoked from network); 6 Mar 2013 21:53:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Mar 2013 21:53:59 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.172 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.210.172 mail-ia0-f172.google.com Received: from [209.85.210.172] ([209.85.210.172:57697] helo=mail-ia0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6F/52-39658-6FAB7315 for ; Wed, 06 Mar 2013 16:53:59 -0500 Received: by mail-ia0-f172.google.com with SMTP id l29so7935803iag.31 for ; Wed, 06 Mar 2013 13:53:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=toXCjCyW0vgt6qyK0422dycRM3RbiE6n0zTmcZUGIMo=; b=NZ+3tvOkKU+lQ/gnDkKco7L7m1g/An/q/GFmaM14pZxaquGBApNJg/wzshYqmfIRuw NAi4p7IQFGpUKeA1p2zHkeNZ5YTj3rp3ZQj1+X7x7et9hQu7zeydwJ/MxOIhsXTpA0MI JAKU1P8yOQAfxfIoNBOzU7Pav2G4K+P4/bEyqlH5UmXjOx1fdDZvWZDXJS3N7B7RCvmP jIP/N7mMpVZVyEMwZs1y0PargYAnGwaba40QR8kGGX/Mp2E7Y6yg0yfyaQGEBKqbiZJ1 OopKVOjPIM8DtQxUkKxGoRB6hrpBQ/7Ax9Ksbfw0bUlUJuxS4R6kHJwMiUD+c7CgIKXT dAug== MIME-Version: 1.0 X-Received: by 10.50.212.105 with SMTP id nj9mr12403518igc.17.1362606836496; Wed, 06 Mar 2013 13:53:56 -0800 (PST) Received: by 10.50.114.137 with HTTP; Wed, 6 Mar 2013 13:53:56 -0800 (PST) In-Reply-To: References: Date: Wed, 6 Mar 2013 22:53:56 +0100 Message-ID: To: Bob Weinand Cc: PHP Internals Content-Type: multipart/alternative; boundary=14dae93404a3758d7504d748a00a Subject: Re: [PHP-DEV] [RFC] unset(): return bool if the variable has existed From: tyra3l@gmail.com (Ferenc Kovacs) --14dae93404a3758d7504d748a00a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Mar 6, 2013 at 10:49 PM, Bob Weinand wrote: > Am 06.03.2013 um 22:47 schrieb "Ferenc Kovacs" : > > > > > On Wed, Mar 6, 2013 at 10:41 PM, Bob Weinand wrote: > >> Am 06.03.2013 um 22:38 schrieb "Ferenc Kovacs" : >> >> >> On Wed, Mar 6, 2013 at 10:10 PM, Bob Weinand wrote= : >> >>> Hi! >>> >>> As this seem to require a RFC, here is it: >>> >>> https://wiki.php.net/rfc/unset_bool >>> >>> Please feedback, >>> >>> Bob Weinand >>> >>> -- >>> PHP Internals - PHP Runtime Development Mailing List >>> To unsubscribe, visit: http://www.php.net/unsub.php >>> >>> >> unset is not a function, but a language construct, and there is at least >> one similar construct which doesn't return anything (eg. not returning >> NULL, but syntax error when used in a return context): echo >> >> -- >> Ferenc Kov=C3=A1cs >> @Tyr43l - http://tyrael.hu >> >> >> >> Echo doesn't behave as a function as it doesn't need parenthesis etc. >> (and has an equivalent which can be used as alternative: print) >> >> I'd consider unset as a function in form of a language construct. >> >> Bob Weinand >> > > I'm not sure that we should change our terminology based on whether or no= t > a language construct requires the parenthesis or not. > there are other differences in behavior, for example $foo =3D > "print";$foo("bar"); won't work even thought that print("bar"); look like= s > as a function call. > > > -- > Ferenc Kov=C3=A1cs > @Tyr43l - http://tyrael.hu > > > Ok; I think it's better not to argue about this... > > Bob Weinand > I'm glad that we sorted this out. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --14dae93404a3758d7504d748a00a--