Why is python not written in C++ ?
Nobody
nobody at nowhere.com
Tue Aug 3 05:45:06 EDT 2010
On Tue, 03 Aug 2010 18:48:24 +1000, James Mills wrote:
>> One feature which can't readily be implemented in C is the automatic
>> clean-up side of the RAII idiom.
>
> C is a Turing-Complete Language is it not ?
>
> If so, therefore is it not true "anything" can be implemented ?
> Even the "automated clean-up side of the RAIL idiom" ?
By "automated", I mean the fact that destructors get called automatically
when a local variable goes out of scope, whether by reaching the end of
the block, return, break, continue, or an exception.
In C, the clean-up has to be made explicit, i.e. not "automated".
More information about the Python-list
mailing list