[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Feature request
Archie Cobbs wrote:
> So the feature request is that the methods of DepthFirstAdapter
> declare throwing some new exception created for this purpose
> (call it SemanticException or whatever).
> Does this make sense? Or is there another way to get around this
The problem is that implementing your request requires adding a "throws
SemanticException" to the Switchable.apply() method. This would render
the use of on the fly anonymous instances quite cumbersome.
The second point is, if all methods have a "throws SemanticException"
signature, in what is it different from the implicit "throws
So, I am not sure that this feature is really an improvement. I would
need additional convincing arguments.