minority report [was RE: Why consting is good]

2006-08-13 Thread Horsley, Tom
I can't resist putting on my surly curmudgeon hat to disagree about the value of "const". In my experience, the hypothetical errors the compiler will catch for you are almost totally nonexistant, yet the work of complying with the A-R compilers nit-picking is a constant (heh!) drain or resources t

Re: Why consting is good

2006-08-13 Thread Johan Vromans
Andy Lester <[EMAIL PROTECTED]> writes: > const int days_per_month[] = > { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; > > You don't want to be able to do C, right? No, but C

Re: minority report [was RE: Why consting is good]

2006-08-13 Thread Andy Lester
In my experience, the hypothetical errors the compiler will catch for you are almost totally nonexistant, In my experience, it's the not catching existing errors, but preventing you from doing stupid stuff going forward. Possibly relevant questions: How many man hours have just been spent

Re: Why consting is good

2006-08-13 Thread Andy Lester
On Aug 13, 2006, at 7:05 AM, Paul Johnson wrote: Very much so. s/constants/contents/ I suspect? Or maybe s/its constants/what it points to/ ? Ooops, thanks. I also added a few sentences and an example on cdecl. -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

Re: Why consting is good

2006-08-13 Thread Andy Lester
On Aug 13, 2006, at 5:57 AM, Johan Vromans wrote: You don't want to be able to do C, right? No, but C yeah yeah, I knew when I wrote that that SOME smart aleck would point that out. :-) -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

Re: Why consting is good

2006-08-13 Thread Paul Johnson
On Sat, Aug 12, 2006 at 08:16:10PM -0500, Andy Lester wrote: > I've written up some stuff about why consting is good. It's in the > Parrot repository as cage/consting.pod. > > To my old p5p homies: I send this to you so you don't forget about > consting

Re: Why consting is good

2006-08-13 Thread Elizabeth Mattijsen
At 8:16 PM -0500 8/12/06, Andy Lester wrote: I've written up some stuff about why consting is good. It's in the Parrot repository as cage/consting.pod. Inspired by Andy's consting work, and xmath's Data::Alias, I've created Data::Reuse, which allows you to easily co

Why consting is good

2006-08-12 Thread Andy Lester
I've written up some stuff about why consting is good. It's in the Parrot repository as cage/consting.pod. To my old p5p homies: I send this to you so you don't forget about consting while I'm working over here in Parrotland! xoxo, Andy =head1 Why consting is good In