Version française
Home     About     Download     Resources     Contact us    
Browse thread
exception safety / RAII ?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Oliver Bandel <oliver@f...>
Subject: Re: [Caml-list] Re: exception safety / RAII ?
On Mon, Mar 07, 2005 at 01:30:48PM +0000, Jon Harrop wrote:
> On Monday 07 March 2005 01:32, Stefan Monnier wrote:
> > > In most cases you probably won't care when a file is closed after writing
> > > to it, so you can just rely on the garbage collector.
> >
> > Very bad practice in (e.g.) an NFS world where the filesystem makes no
> > guarantee about file writes until you actually close the file.
> 
> Yes, this may go wrong under certain circumstances (it is not a guarantee) but 
> I very rarely have problems with this.

Building reliable programs on unreliable assumptions
will definitely yield to problems.
Not during development, not during tests, but when the software
finally is used. (Murphey....)
So, buying that piece of code.... and your customers will wish
they better had bought the product from the other company...

Ciao,
   Oliver