Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77252 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81011 invoked from network); 16 Sep 2014 15:11:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Sep 2014 15:11:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.172 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.214.172 mail-ob0-f172.google.com Received: from [209.85.214.172] ([209.85.214.172:52785] helo=mail-ob0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 35/21-64534-B0358145 for ; Tue, 16 Sep 2014 11:11:09 -0400 Received: by mail-ob0-f172.google.com with SMTP id va2so2291391obc.17 for ; Tue, 16 Sep 2014 08:11:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=BFEHsB22rF6tjuyn+6dWTnhG5pL2mOGYSh1hf92TATI=; b=nZrrTu3jQvxOt/HVAMFSKYuV0pIgENLVSM1K1VZQpFPtXxupL10rK7r3wmUvRbJxqj b1cCYYqzfBqz7ttXid60y9CQ/hK++mrbOZdBRlj+rOKlVbaZrAhFvGlZ82wQjuheClj2 kmOVu/Kgah/Z9uufbJSQvIClU4m1tNrZNzMBT8VxHvb7wOKyYE1c7YgOgvkRA8Za6Qj7 ws5hxeI+SiKETTrNAPcvgyEKHGeIeiD0uf3A9pMOMxqjwkfsZKo07ZTcsF5tQLsf/H3u AEnnAMPKH619bQBsLYsKd8TqQT9yrI0XVWlyB/7+nK/y1gtdPHo6EQ8UQyuJ6GP73744 f/xw== MIME-Version: 1.0 X-Received: by 10.182.149.235 with SMTP id ud11mr36152532obb.50.1410880263798; Tue, 16 Sep 2014 08:11:03 -0700 (PDT) Sender: morrison.levi@gmail.com Received: by 10.76.106.20 with HTTP; Tue, 16 Sep 2014 08:11:03 -0700 (PDT) Date: Tue, 16 Sep 2014 09:11:03 -0600 X-Google-Sender-Auth: xX2URdHkgNqy8JuT1O6gKo6FZrk Message-ID: To: internals Content-Type: text/plain; charset=UTF-8 Subject: Renaming type-hints to something else? From: levim@php.net (Levi Morrison) Dear list, I've always been bothered by the fact that we call type declarations 'hints', as if they aren't enforced. They have always been enforced and we don't have an option to turn them off. I'm wondering if we want to move away from that name to something else. I have two RFCs already that deal with types and need to know if there would be support for changing it, because that influences internal and external names. Here's an example: the return types RFC creates a struct that is currently called `zend_type_decl`. This struct is only used for return types at present, but could be unified with arginfo to work with parameter type declarations as well. I'd prefer not to call it `zend_type_hint` or `zend_typehint`, because they aren't 'hints'. This also manifests itself to users because of reflection as well. HHVM internally calls them TypeAnnotations, but since we've had RFC proposals about something "annotations" which are something else I'd prefer to stay away from that. Can anyone come up with a better name than `hints`? Maybe `type declarations`? Or should we just stick with `hints`? What do you guys think?