Boost logo

Boost :

From: Andrei Alexandrescu (andrewalex_at_[hidden])
Date: 2003-04-27 22:05:54

"Edward Diener" <eddielee_at_[hidden]> wrote in message

> I believe Mr. Alexandrescu developed Enforce as a nice way of regularizing
> the code when an exception must be thrown based on a condition. The code
> becomes more readable and easier to understand. For me such constructs,
> although not revolutionary in and of themselves, are important in making
> cleaner and more understandable coding and I appreciate Mr. Alexandrescu's
> efforts in such an area.

Sounds accurate, except for all the "mister"ing :o).

The biggest challenge was to cram a number of features we believed important
in one framework. Every little thing is easy, but making ENFORCE support at
the same time filter semantics (pass the value received back out), any
exception types, formatting with variable number of args, low cost on
success, etc.

One thing that might sound irrelevant but is very useful to handle-based
APIs (sockets, files, Windows, etc.) and COM programming is the filter
semantics that allows you to check and use in one shot.

Mr. Alexandrescu

Boost list run by bdawes at, gregod at, cpdaniel at, john at