Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119186 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 72574 invoked from network); 19 Dec 2022 15:05:55 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 19 Dec 2022 15:05:55 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 357631804FF for ; Mon, 19 Dec 2022 07:05:55 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 19 Dec 2022 07:05:54 -0800 (PST) Received: by mail-ej1-f43.google.com with SMTP id fc4so22086647ejc.12 for ; Mon, 19 Dec 2022 07:05:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=FwQrRzpFr+haQggz/RUB2xnXV+EF7DqAtf6C5a29WIo=; b=Ix81MPdxA1NSPF9SqoMFG31VflAas8AttuMl4+WwUhdxjK9mQKEkrA77uhNNZDUIwI wHvg5tCyqJ+478wgEa/nqDn/3OQTv0JcqCDQ9/ed2X/r+mtFXqhECt9R6Mjrqe6LS5eh wqQErGKXICu/Tvih3OD7PToxY91b/7s4sCKvEtgaCQn3ZkCzl7Y3dD86BgU53dE6irV5 IwSQGm2B3qCVmM2I9c40NqqdqwKk8ztZhZWsPXC2Okap4R2v3UzlrfxSMERbgZh1Umh/ pg2O6JK6s5zXEQxhTxCYy675/X7eIaPYNd3S/IklOg/9GuRFWtCgY17e2/g+XH7RPGeO 0KCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FwQrRzpFr+haQggz/RUB2xnXV+EF7DqAtf6C5a29WIo=; b=Y9g1Jg1WBVgjMeD4p+LuVmezcJCwnfxH+6RGzGCb7ZAxqOHv6fkE24fFpq0Y5VfKki I7H/zJT5gr1qzj/re1/Hm9UYd4UH2urCrADLkRcJWu6mTel5XgrmozSdu+dR9BGXSIPS CC5DF6Iius/ddO0fekgUHuUG6nDhzKVXrV3wjKwHl+roWi6c3JbwtNCj7maBw2Evbb77 X8/NadGHOD64A6aqV+QY5lGnVPCIiIyeDkHuHt6hlhWCmR8pWGwS0LiDzsHDVUUT3zkw 0dqId1thFxzhlrP386MfWX6c/lOt/gZcZi19Zi+LGhXxarlGyX9IYHPjD/jtbq/ZvUoZ PhEw== X-Gm-Message-State: ANoB5pn1aNKESatDky87hwcMI6ZxsF1ilKwH8cZ7arGW3WM+anuVew3y VVVMeM+9Z0m95sWzdaCFCb2L4ve30I4UlEv7DuUFiw== X-Google-Smtp-Source: AA0mqf4pjKrEgCa8aNTWxX1lJ1wKh4xE5TzyrzUusDZZwn8FG2qE5NU+Ou5oAQwXVBUWC1HTocxKN7lGE6mHdUNvsZA= X-Received: by 2002:a17:907:76ee:b0:7c1:545c:4315 with SMTP id kg14-20020a17090776ee00b007c1545c4315mr2105371ejc.157.1671462353428; Mon, 19 Dec 2022 07:05:53 -0800 (PST) MIME-Version: 1.0 References: <0E149CE3-9124-4473-92FE-ABF11B585C77@php.net> In-Reply-To: Date: Mon, 19 Dec 2022 15:05:42 +0000 Message-ID: To: Theodore Brown Cc: Derick Rethans , PHP Developers Mailing List Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [Vote] More Appropriate Date/Time Exceptions From: Danack@basereality.com (Dan Ackroyd) On Sun, 18 Dec 2022 at 16:48, Theodore Brown wrote: > > why it's okay to make a BC break for the OO API, > but not for the procedural API. Because they are different APIs. People who use OO apis are used to handling exceptions and would expect failures in OO code to throw exceptions. That the DateTime OO api isn't currently do so is not conformant to their expectations. People who use the procedural apis of DateTime, or procedural versions of the Intl functionality (e.g. NumberFormatter vs numfmt_format_currency) claim to prefer checking date_get_last_errors(), numfmt_get_error_code() etc., rather than have to worry about exceptions. Changing the procedural functions to use exceptions would be a bigger and more controversial change than the one proposed in this RFC. cheers Dan Ack