Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103588 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 72704 invoked from network); 11 Dec 2018 23:54:11 -0000 Received: from unknown (HELO mail-lj1-f177.google.com) (209.85.208.177) by pb1.pair.com with SMTP; 11 Dec 2018 23:54:11 -0000 Received: by mail-lj1-f177.google.com with SMTP id t9-v6so14208592ljh.6 for ; Tue, 11 Dec 2018 12:21:24 -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=wylFDv5X++oiOVtsnUVyNTm7nl4IJ8DfF2jr302vKjE=; b=QbDfOGQrskZ2Lg55souE+Fht+rHr05a4Jpw2jO0eUGJg+MWQX0vAyBgn5wid8XPwGE 6vfHdVfcAK4z/HxkUvmsuYWbanjCdd4H12ajvndvLx5cLvf/9P3ZkdzZE9Yq0Z7GbTIv Lg3pLO7XOdxVhNXwYzVHtj7Fhl/zXSBxLNfDZYPUQ6ZC1BZxW0X6PYzl5pzlpkaoaYzy 9JNPpkKbaYSTeTP7A7u/9ILdL8zGx1/jh7DO9d2VDeKzIvLp6K07VtqvWfz87LgkBfv1 JaRJnpixFfTxwxsymAgLQ+w1NCfo8VPyUa+btUHaN04XaNstVFF8IuEKyc6vOq8Iz6mr hUQg== X-Gm-Message-State: AA+aEWbj5/G3WCayww6V5NCaeKMeHOn2ZiBJFesVNuB/99fZG2GpXKjt 6OLSI/D7PGKLSnZW01LILwHHQRUMRx2awIdzTR8= X-Google-Smtp-Source: AFSGD/X+6a9GazwhIK+ox1Tv2PlEJgi4VYV1dEi3y9kWAQiPmpzuaZJF9Hbn9ZvCCcLOZDOqz2SCBw6C75AltwCRW54= X-Received: by 2002:a2e:4218:: with SMTP id p24-v6mr10644862lja.58.1544559683154; Tue, 11 Dec 2018 12:21:23 -0800 (PST) MIME-Version: 1.0 References: <6cd879da-b622-3265-e9ca-771badd228e0@gmx.de> In-Reply-To: <6cd879da-b622-3265-e9ca-771badd228e0@gmx.de> Date: Tue, 11 Dec 2018 13:21:06 -0700 Message-ID: To: Christoph Becker Cc: Marco Pivetta , Dmitry Stogov , internals Content-Type: multipart/alternative; boundary="0000000000003fb7fa057cc4d371" Subject: Re: [PHP-DEV] [RFC] FFI - Foreign Function Interface From: levim@php.net (Levi Morrison) --0000000000003fb7fa057cc4d371 Content-Type: text/plain; charset="UTF-8" On Tue, Dec 11, 2018 at 11:33 AM Christoph M. Becker wrote: > On 06.12.2018 at 17:26, Marco Pivetta wrote: > > > Looks very interesting, especially for simplifying the landscape of > > extensions. > > > > Still, the amount of abbreviations and naming issues is quite huge: > needs a > > lot of care on that end, IMO. Even just the name of the type (`FFI`) can > > simply be expanded to `ForeignFunctionInterface`. > > By the same reasoning, http_response_code() is a bad name, and should be > changed to hyper_text_transfer_protocol_response_code(). Same for > parse_url(), which should better be named > parse_uniform_resource_locator(). ;) > > Don't get me wrong, I'm all for having self-explaining identifiers, but > if within a given domain an abbreviation is *very* common, it makes not > much sense to spell it out. And FFI is very common when interfacing to > C from a scripting language. > > -- > Christoph M. Becker > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php My only nit on naming is that "FFI" needs to specify in some way *which* FFI. Although an FFI with C is very common it is not the only one that exists. Naming this "CFFI" or such would solve this. --0000000000003fb7fa057cc4d371--