Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103847 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 79010 invoked from network); 25 Jan 2019 16:08:47 -0000 Received: from unknown (HELO mail-it1-f170.google.com) (209.85.166.170) by pb1.pair.com with SMTP; 25 Jan 2019 16:08:47 -0000 Received: by mail-it1-f170.google.com with SMTP id b5so9474894iti.2 for ; Fri, 25 Jan 2019 04:47:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=y7ZtvAnOsCzR+GSPlN0Dw+Eza/uSjFspoTriDghwmWY=; b=NyZDOeabYTEGmzAxscIFdIajOZWERuCh1EnnZiea3/G57z5hAkSyFAL2/CuENOssSP bi93FOyls0eocJbyzYh5WHb2i6FJ0+YzkkxBDdqgZD/lah2TIW0+W+SFrCiVvnE5YiOR IXUiDkK2RwP4HGeH4U7KRmbBftBWhiSxQtf3ekVG0HDW1FgfFrQ39gZPUv63WLw9CIBU VczpVUGE/7MHh5MEsOfOHlcLaEw7YAp2P0Y+zZ4NHcK5uojw/X/hQhvdfiikk/+FY9ev FxUGyV93THe8/qfAJc5xQRvnGBFsYl+IrAq2v7gt4csG4BnA1NQcG+GAOBuPp5OjXJZw YYEg== 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=y7ZtvAnOsCzR+GSPlN0Dw+Eza/uSjFspoTriDghwmWY=; b=FuuODIAQ2RqM2RWX+0soW2nJ0s3G/qlEieQdBrNwmj+uqetO0Exb4GEe6z6YnVRAkv eM4CsHyd4u2RChz9zZauyBq6W4teWhuQojeTUfXFBf7YXxMyrenwHFTNi1k/crbEK+K6 FSze5WpXhLImynFlwzloqHGrO9ZW893LyMDLPpdYxaxdPcgXPfmCOxjZ84QJcTyMzaQE wwCjG9/kjOHkP8KAHTs96vLe7IsNF7SGsnpEJVe6oTFTVsAUwSI3WXoDvDnQzT0t19b5 YBfdWWGKtVd3bsK+W0l4nG35MnvQIlvCVx+COVI1NmtRMNFY3ZCQKohtXsGd3OdSqNqc Snvw== X-Gm-Message-State: AJcUukc/eyFYea03WWPBKTilxXsbKjma9bFvY8+w5BHm4cytmMi4BpE7 G+eQ7sa9m23LcbQeI9l0ifKskqF8xOSH57nnlmI= X-Google-Smtp-Source: ALg8bN6lNrtxl7cYy8q4aeHuA0MLxcTV+bNwZNwpgTDUBJTejBphBABwwa0T03PimJp6nTv1CxfHVp+GoPIK22A6tfY= X-Received: by 2002:a24:dd8d:: with SMTP id t135mr3759243itf.84.1548420430070; Fri, 25 Jan 2019 04:47:10 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 25 Jan 2019 12:46:59 +0000 Message-ID: To: =?UTF-8?B?0JPQu9C10LEg0JbRg9C60L7Qsg==?= Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000b2874a058047b915" Subject: Re: [PHP-DEV] New RFC about variables. From: rowan.collins@gmail.com (Rowan Collins) --000000000000b2874a058047b915 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 25 Jan 2019 at 10:32, =D0=93=D0=BB=D0=B5=D0=B1 =D0=96=D1=83=D0=BA= =D0=BE=D0=B2 wrote: > Hi, my name is Gleb Zhukov. > > In my RFC I want to propose to use a new entities(abstractions), like > *objects*, *structures* and *data* instead of variables. It gives such > advatege like a mental division of different, independent entities(object= s, > structures, data) in any language. > Hi Gleb! This sounds a lot like how Perl uses "sigils" for different data types - $scalar, @array, %hash The problem with this in a complex language like PHP is that you soon run out of different characters for the different types you might want to represent. Note that your example already fails in this regard, because it suggests "#", which is already used for comments. When designing a language for the first time, it's an interesting thing to consider, but in an established language like PHP, it would be very disruptive, and I don't think it brings that much benefit. You can get almost the same thing in your own code by naming variables based on their type (so-called "Hungarian notation"). Regards, --=20 Rowan Collins [IMSoP] --000000000000b2874a058047b915--