|
Boost : |
From: John Torjo (john.lists_at_[hidden])
Date: 2003-12-03 18:19:02
>
>
> I'd rather not see them in TR1. Arrays don't play nice with the standard
> library, and frankly I refuse to use them anywhere in application-level
> code unless forced. TR1 has a real array class template, and it's my hope
> that it will someday obsolete built-in arrays for the majority of
> programmers. I've seen the mental mess built-in arrays cause for students:
> "You mean, everything passed by value makes a copy, but arrays passed by
> value is a reference? What do you mean it 'degrades' to a pointer---it
> looks like an array!" Not to mention the inability to add bounds checking,
> which any TR1 implementation could trivially add in debug mode and save us
> lowly TAs lots of time when helping students debug...
>
> So basically... I'd rather not add anything that encourages people to use
> built-in arrays, especially now that we've given them a better option.
>
So true ;)
I second that from the bottom of my heart!
Best,
John
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk