develooper Front page | perl.perl6.language | Postings from May 2001

Re: what I meant about hungarian notation

Thread Previous | Thread Next
From:
Matt Youell
Date:
May 8, 2001 23:25
Subject:
Re: what I meant about hungarian notation
Message ID:
01ab01c0d84c$de3986c0$2c25fea9@oemcomputer
<snip>
> sane indentation by making it part of the language, Perl is a
> language that enforces a dialect of hungarian notation by making
> its variable decorations an intrinsic part of the language.

But $, @, and % indicate data organization, not type...

> What if, instead of cramming everything into "scalar" to the point
> where it loses its value as "a data type that magically converts
> between numeric and string, as needed," we undo the Great Perl5
> Dilution and undecorate references.

Continuing this further, why keep *any* notation at all? Why are vars with
string or numeric data more worthy of $?

<snip>
> We are at the point where there are so many variable types that the
> dollar sign on their names has become a hollow formality.

Again, I'm confused. All I expect from something with a $ is that it's a
single value, not necessarily a string or a number. And what if I want to
treat a string-ifiable object as an untyped value? Is my var then "$
worthy"?


- Matt





Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About