Michael (mstone) wrote,

Checked Exceptions - это что-то плохое

Годное полешко для холиварного флейма: Checked Exceptions Might Have Their Place, But It Isn't In Java

The team working on lambdas for Java has found checked exceptions a major stumbling block essentially for the reasons outlined here. A significant amount of work is going into easing that pain.

In short, as it stands the design of the Java language requires you to either avoid reusable abstractions or wrap useless checked exceptions in boilerplate. And if I want to avoid reusable abstractions then I know where to find Pascal. Could checked exceptions be made workable? Perhaps with some careful language design. But Java isn't that design.
  • Post a new comment


    default userpic
  • 1 comment