Perl6 RFC Librarian wrote: > It is proposed that a new syntax for declaring constants be introduced: > > my constant $PI = 3.1415926; > my constant @FIB = (1,1,2,3,5,8,13,21); > my constant %ENG_ERRORS = (E_UNDEF=>'undefined', E_FAILED=>'failed'); I like this. Implementation wise, it could fit nicely with the DRAFT structure RFC, which needs things that look like hashes with a constant set of keys, although for structures, the values can vary with the method calls. -- Glenn ===== There are two kinds of people, those who finish what they start, and so on... -- Robert Byrne _______________________________________________ Why pay for something you could get for free? NetZero provides FREE Internet Access and Email http://www.netzero.net/download/index.html
- Re: RFC 83 (v1) Make constants look l... Mike Pastore
- Re: RFC 83 (v1) Make constants l... Philip Newton
- Re: RFC 83 (v1) Make constan... Mike Pastore
- Re: RFC 83 (v1) Make constants look l... Michael Fowler
- Does Perl need true constants? (was R... Nathan Wiger
- Re: RFC 83 (v1) Make constants look like ... Jeremy Howard
- Re: RFC 83 (v1) Make constants look l... Dan Sugalski
- Re: RFC 83 (v1) Make constants look like vari... Damian Conway
- Re: RFC 83 (v1) Make constants look like ... Steve Simmons
- Re: RFC 83 (v1) Make constants look l... Larry Wall
- Re: RFC 83 (v1) Make constants look like variables Glenn Linderman
- Re: RFC 83 (v1) Make constants look like variables James Mastros
- Re: RFC 83 (v1) Make constants look like variables Bryan C . Warnock
- Re: RFC 83 (v1) Make constants look like variables Ed Mills
- Re: RFC 83 (v1) Make constants look like variable... Nick Ing-Simmons
- Re: RFC 83 (v1) Make constants look like vari... John Porter
- Re: RFC 83 (v1) Make constants look like ... Nick Ing-Simmons
- Re: RFC 83 (v1) Make constants look like variable... Nathan Wiger
- Re: RFC 83 (v1) Make constants look like vari... Jonathan Scott Duff
- Re: RFC 83 (v1) Make constants look like ... Jeremy Howard