ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl6-language
perl6-language
Re: Customizable default hash and array values.
by Michael G Schwern other posts by this author
Oct 8 2001 6:58PM messages near this date
Re: Customizable default hash and array values. | Re: Customizable default hash and array values.
On Mon, Oct 08, 2001 at 03:23:22PM +0200, Bart Lateur wrote:
>  On Sat, 6 Oct 2001 19:48:13 -0400, Michael G Schwern wrote:

>  

>  >> What about zero.

>  >

>  >No problem in Perl 6.

>  >

>  >    my $foo = %hash{foo} // 'some default';

>  

>  And nobody will ever confuse this operator with the "comment till end of

>  line" marker in C++, Java and Javascript, and many more I suppose.


Only people who are under the delusion that they're programming C++,
Java or Javascript instead of Perl.  But those people are already too
busy with Perl5, wondering what the funny looking /foo*/ comment is
all about. ;)


-- 

Michael G. Schwern   <schwern@[...].com>     http://www.pobox.com/~schwern/

Perl6 Quality Assurance     <perl-qa@[...].org> 	     Kwalitee Is Job One

<GuRuThuG>  make a channel called #Perl, and infest it with joking and 

	   fun.... it doesnt make alot of sense.


Thread:
Michael G Schwern
RaFaL Pocztarski
Johan Vromans
Bart Lateur
Michael G Schwern
Bart Lateur
Michael G Schwern
Dan Sugalski
David Grove

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved