-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of David Abrahams Sent: Thursday, September 14, 2006 4:07 AM To: boost-users@lists.boost.org Subject: Re: [Boost-users] Library Interface Design
Scott Meyers
writes: - It has to be easy to find and fix mistakes resulting from incorrect usage of an API. For example, APIs should throw exceptions clearly describing what needs to be done to fix the problems.
It's always better to detect the problems at compile-time, at least in the world of statically-checked languages.
I would echo that this statement is also true for dynamically-checked languages in the obvious way. I think my python code is much easier to read if there is only one way to get a good object.