Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125216 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id AA2F21A00BD for ; Sun, 25 Aug 2024 15:29:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1724599857; bh=fYZnhg/w297mmZ4w4Q6z888ixoV4P0gnkSHpsZ+1TEQ=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From; b=jPoIc/n0VDCCz2admkD702UBHdeBPt7vUaQ3t2DNTaGCDzhJwdeB22bkfaeLNBtR6 z/rwOddXLMk38/MaCpQWigRPvef3IKGKoOLEvaO03X8VqRdA0/1g/k17FQJ/plUpXY HkXojYWwVHurIVm8AbBRGHsrtvCvbkYql2zwfF4MefrgjlT7FiMe41k53KJCS+IztD t1p29iODlLrwMUofN/jBTqCGqExjqqCOinomtQb8B17pw+frnXh6Tu9x8TsXfnEMk1 +CTiBO7Rk4J6dI8SnejZJOnntFVv2Z5IHYIAxgQOtjhP4IX4l2M9tQVu4+QeB0xUt3 wuywYSTlQ8xfQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B26B6180081 for ; Sun, 25 Aug 2024 15:30:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: **** X-Spam-Status: No, score=4.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DMARC_MISSING,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,RCVD_IN_SBL_CSS,SPF_HELO_NONE, SPF_NONE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com [209.85.219.171]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 25 Aug 2024 15:30:51 +0000 (UTC) Received: by mail-yb1-f171.google.com with SMTP id 3f1490d57ef6-e116ec43a4aso3918557276.0 for ; Sun, 25 Aug 2024 08:28:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=coggenterprises-com.20230601.gappssmtp.com; s=20230601; t=1724599739; x=1725204539; darn=lists.php.net; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=fYZnhg/w297mmZ4w4Q6z888ixoV4P0gnkSHpsZ+1TEQ=; b=ssPJZgkBXJF8zzDAMyIwNUP3isuiYNpcjG6qlnkmvBfjmuBDeaPw36cnCXR71Vm8bp 1NkyvqcTx2WZfDWCAooAcNMM+JAg9oxKYcccqEjnsES3G7thT7KIiqCO1Kw0N737jqT5 J9T5s2ek3OVMo3YdXonRCFPOIyn3E81Ee1Pxzux39H0jbIJyfUlFlqK2FmBRqv0byTKN l+a/vNu2gCXyCmIXigU7keX94YqoYs2H/642DEvZrnS03unyJlVfUOob5R1NH+uO4sLT Q9kN473CWGE9BALIEVNlhwWnm/fux/mu5ywkhYHo8CQp0PWbR0FqXanciEshDcmBZirg cLQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724599739; x=1725204539; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=fYZnhg/w297mmZ4w4Q6z888ixoV4P0gnkSHpsZ+1TEQ=; b=rRohLFgA0qNq6ONqkEoiqz55I3o32ULwWtJEDZqmhueX6m2Vw67Q5TfjILW5xH+xIg yzdR/fVGD4pslQ5Zfq0hj1UnSXxqJBWujtZcFFKZrAPIQB3B/7TIBrkYlantW/WeH6rk HQ4leIUcKrXGLU3HV8XxZH0/mXfehITyjec5B1u+qieidGsmeU79YtURhoUomT5d27e2 tv4ONFcs+qbkYjRT81FbzMNDBMBKOmB/VPJErUQPmFItg0d6xAfj9D1HLMWUac+kNY6j ruq6txwa2ysMNWceYO/AyQD1VMM/HeAhlbMCw2uk9R6wlaT+baaqAj1OQU2rjv2WUl6E zp8Q== X-Forwarded-Encrypted: i=1; AJvYcCWEjWBgxUqTJOXi9dX1MNiQZYlGsjZ2+/uvrjQwLune6OCWp31noe6iTkFUUgUno8Nfhltnf5YYh0E=@lists.php.net X-Gm-Message-State: AOJu0Yxq4v6GTQoimk7nvU9erFJKTxEX7XsJDTJsQzqGKb2wyFflxORF MRpNVY4Kk3ov4umhNU6KfeMmxXW5P+CCK/Se4NlEbKmNhlivZKraxsUFPbjGHVE= X-Google-Smtp-Source: AGHT+IHCIiFfw2WMeV0bM7vjssEWo5N4BQo6ys8ylUFjc9rhBFwztOADF7ffmpx/hLqzGmVf+Acssg== X-Received: by 2002:a05:6902:2506:b0:e02:b60c:3d2 with SMTP id 3f1490d57ef6-e17a866d1c7mr6903057276.50.1724599739037; Sun, 25 Aug 2024 08:28:59 -0700 (PDT) Received: from Johns-MacBook-Pro-2.local ([207.213.210.67]) by smtp.gmail.com with ESMTPSA id 3f1490d57ef6-e178e4406b0sm1561806276.12.2024.08.25.08.28.58 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Aug 2024 08:28:58 -0700 (PDT) Date: Sun, 25 Aug 2024 11:28:56 -0400 To: Rob Landers Cc: Matthew Weier O'Phinney , Bilge , PHP Developers Mailing List Message-ID: <5D847DC3-3BF3-4AFF-AEED-263156CA2ED9@getmailspring.com> In-Reply-To: References: Subject: Re: [PHP-DEV] [RFC] Default expression X-Mailer: Mailspring Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="66cb4db8_643c9869_11f93" From: john@coggeshall.org (John Coggeshall) --66cb4db8_643c9869_11f93 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Aug 25 2024, at 11:11 am, Rob Landers wrote: > > Which operants don=E2=80=99t make sense=3F Well certainly all of the ones toward the end of the appendix in the R=46= C the R=46C itself notes are non-sensical. Personally, I'm not sold on th= e idea default should be an operand in an expression at all though. I do see the value of bitwise operators / expressions as highlighted in t= he R=46C. There might be other cases, but I'm wary of them -- I don't thi= nk giving developers the ability to write logic and expressions against h= ard-coded default values in upstream APIs has a lot of merit in most case= s. I can tell you I doubt I would ever support the idea of calling method= s of default , which I'm still unclear if this R=46C is proposing. I would suggest a compromise where the R=46C be refocused to those expres= sions and operators that explicitly make sense, and leave the rest of the= m out for now. To me, that basically means =22default with bitwise expres= sion support=22 based on what I've seen so far. John --66cb4db8_643c9869_11f93 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

On Aug 25 2024, at= 11:11 am, Rob Landers <rob=40bottled.codes> wrote:

Which operants don=E2=80=99t make sense=3F

Well certainly all of the ones toward the end of the a= ppendix in the R=46C the R=46C itself notes are non-sensical. Personally,= I'm not sold on the idea default  should be an operand= in an expression at all though.

I do see the value of bitw= ise operators / expressions as highlighted in the R=46C. There might be o= ther cases, but I'm wary of them -- I don't think giving developers the a= bility to write logic and expressions against hard-coded default values i= n upstream APIs has a lot of merit in most cases. I can tell you I doubt = I would ever support the idea of calling methods of default&= nbsp;, which I'm still unclear if this R=46C is proposing.

= I would suggest a compromise where the R=46C be refocused to those expres= sions and operators that explicitly make sense, and leave the rest of the= m out for now. To me, that basically means =22default with bitwise expres= sion support=22 based on what I've seen so far.

John
--66cb4db8_643c9869_11f93--