On Wednesday, 5 July 2017 at 21:05:04 UTC, Ola Fosheim Grøstad wrote:
On Wednesday, 5 July 2017 at 15:48:33 UTC, Crayo List wrote:
What happens to the 3000 direct and indirect calls to open() ?

Notice how the 'interface' has not changed, only the implementation.

No, the exception spec is part of the interface whether it is in the function declaration or not.

I disagree!
Once an interface is defined you should be able to alter the implementation all you want without impacting client code!

Such a change could be
fatal in any system.

No idea what you mean here.

What you should do is to specify what Exceptions are thrown across module borders. That means you should recast the internal exceptions into module-level exceptions.

I don't need to do anything since I don't have a problem. I don't understand what are you helping me with. I pointed out how checked exceptions 'leak' internal implementation, that was all.




Reply via email to