comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <rm-host.bauhaus@maps.futureapps.de>
Subject: Re: A suggestion for resource management
Date: Sun, 22 Aug 2010 13:32:07 +0200
Date: 2010-08-22T13:32:07+02:00	[thread overview]
Message-ID: <4c710ab7$0$6882$9b4e6d93@newsspool2.arcor-online.net> (raw)
In-Reply-To: <87eidr3cje.fsf@mid.deneb.enyo.de>

On 8/21/10 11:01 PM, Florian Weimer wrote:
> * Niklas Holsti:

>> [One may use blocks, this is Ada.]
>>
>> I find that form clear and brief enough, although I admit that
>> nesting depth may become awkwardly large (the remedy is to split the
>> procedure).
>
> No one will write such code unless forced to do so by some static
> analysis tool.  It's rather messy.

(Even though there is some evidence that block nesting and
disciplined manual cleanup has been considered messy here
and there, backing this claim with data will help.
Recent Python development may be a source of evidence,  e.g.
counting cleanup Bugs in old Python from a big installation
such as Google App Engine, versus new Python and whatever
programs are available for statistical analysis.)


Wouldn't a new type based hook into the object life cycle
fit the language better?  At least if you use types to
encapsulate objects that belong together.

Wouldn't have compatibility problems, either, would it?

Scope(whatever) ...; looks like a solution typical of {} languages:
compare its "flexibility" with the "flexibility" of goto in C and Ada,
respectively.  I find it too compiler-writer-oriented, and somewhat
ad hoc in use.  How can it be bridled?

Just my 2c.


Georg



  parent reply	other threads:[~2010-08-22 11:32 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-21 16:20 A suggestion for resource management Florian Weimer
2010-08-21 19:07 ` Dmitry A. Kazakov
2010-08-21 19:47   ` Florian Weimer
2010-08-21 20:53     ` Dmitry A. Kazakov
2010-08-21 21:09       ` Florian Weimer
2010-08-22  6:40         ` Dmitry A. Kazakov
2010-08-23 23:22         ` Randy Brukardt
2010-08-21 20:34 ` Niklas Holsti
2010-08-21 21:01   ` Florian Weimer
2010-08-22 10:53     ` Niklas Holsti
2010-08-22 15:29       ` Florian Weimer
2010-08-22 16:12       ` Florian Weimer
2010-08-23 12:25         ` Niklas Holsti
2010-09-04 19:09           ` Florian Weimer
2010-09-07 10:14             ` Niklas Holsti
2010-08-22 11:32     ` Georg Bauhaus [this message]
2010-08-23 23:37       ` Randy Brukardt
2010-08-22 13:09 ` stefan-lucks
2010-08-22 14:30   ` Florian Weimer
2010-08-22 15:09   ` Florian Weimer
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox