[Kc] Sigils

David Nicol davidnicol at gmail.com
Wed Feb 25 11:35:28 PST 2015


one of the perl6 discussion proposals was called "highlander variables"
which intended to forbid the convenience of different variables except in
sigil. There were other sigil-related reforms proposed as well. Fifteen
years, how time flies.

I like to think that the "real perl 6" is in fact Javascript, which of
course has no sigils.

On Wed, Feb 25, 2015 at 12:23 PM, Kit Peters <popefelix at gmail.com> wrote:

> So I posted this on my facecrack, but I thought I'd post it here too to
> get y'all's thoughts.
>
> I'm not sure how I feel about sigils in perl. On the one hand, it's nice
> to see that a given variable is a scalar, hash, or array. On the other
> hand, most of the time I'm passing around scalars anyhow, and scalars can
> be anything, so I lose that nice way of identifying the type of the
> variable without resorting to (ugh) Hungarian notation (no offense to
> actual Hungarians meant). Plus you can have two variables with the same
> name but different sigils, which can be really confusing. Maybe the
> languages without sigils have the right idea. I don't know.
>
> --
> Kit Peters, W0KEH
> GPG public key fingerpint: 1A12 04B6 0C80 306A B292  14FD 2C7A 1037 F666
> 46A7
> Hello to any and all NSA, DEA, or other government or non-government
> agents reading this email.  Tell me about your life; I'll tell you about
> mine.
>
> _______________________________________________
> kc mailing list
> kc at pm.org
> http://mail.pm.org/mailman/listinfo/kc
>



-- 
There is a lot more low hanging fruit when you're tall.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/kc/attachments/20150225/09df9fb2/attachment.html>


More information about the kc mailing list