Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112214 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 43864 invoked from network); 9 Nov 2020 16:03:02 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 9 Nov 2020 16:03:02 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 769301804C6 for ; Mon, 9 Nov 2020 07:24:59 -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=1.4 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 9 Nov 2020 07:24:59 -0800 (PST) Received: by mail-lf1-f49.google.com with SMTP id j205so5587128lfj.6 for ; Mon, 09 Nov 2020 07:24:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mdhstTMzRZ4/MyngjkP+xgKI6zQzuGubkzV3akLmstU=; b=I0bFFY8aG4e9M47EOts1xxBx4Hh3qT1Qnn2ozMI0Du7ky6UxWesE+zOy0pbkal0HWG KRVnnEzaU9w/RvgPbeE7V2udDwE3ui1nIE09gFWuPEmQo7iCfnctFHNb2/CB/a/e6g/O V0wRZsytaNUOh+wys3aHcbtSYPFuEb1l+UdyJpKjQNB4QcAVvsxoYYDj34KvbunktnE2 nBWaWf3vFaszwGfnU7zi69xLP7Ed4fL7VcRHDiwxwetSan7Y8t2XotLt3I6/medhytoQ RGQ7IJZiX8a2i3FChU391kph/TnDxpgNZABZEZCLNfo1+m4fD8G3KMrVQqIeux9BdexT hfTw== X-Gm-Message-State: AOAM533MReBN5k1tE5F6FQOjer9vJyerGFtLkQtzsJmmeg+ru0UmMP24 C3qlEXDf4GsxNIKJQdGYKroPd5QJ2x6aqeNUqMS9ZA== X-Google-Smtp-Source: ABdhPJwkHGHstbc/UGy1LICSYy+SUWj8c2XrreQoxqumFl8zH52xgevqLNxn3UPIfJaYkGWjbnirkXbXDvW4rtUx9EM= X-Received: by 2002:ac2:57cf:: with SMTP id k15mr5289576lfo.501.1604935497551; Mon, 09 Nov 2020 07:24:57 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 9 Nov 2020 09:24:46 -0600 Message-ID: To: Eugene Sidelnyk Cc: PHP Internals Content-Type: multipart/alternative; boundary="000000000000381d1605b3ae2a97" Subject: Re: [PHP-DEV] Alias for `int|float` From: pollita@php.net (Sara Golemon) --000000000000381d1605b3ae2a97 Content-Type: text/plain; charset="UTF-8" On Sun, Nov 8, 2020 at 11:09 AM Eugene Sidelnyk wrote: > What do you think about creating shorthand `number` for `int|float`? > Others have pointed at a few reasons why not, but I'd like to add that if we allow type aliasing, then projects can choose to define this or not. I'd rather see the power (and tradeoffs) placed in the hands of script developers. -Sara --000000000000381d1605b3ae2a97--