elharo commented on PR #1156:
URL: https://github.com/apache/commons-lang/pull/1156#issuecomment-1913173932

   I like "not affect any current users of this class, since I believe the 
absence of handlers should result in the class functioning exactly as it does 
now" That makes a lot of sense.
   
   Note that I was talking about unexpected exceptions, not unchecked 
exceptions. Not quite the same thing. An error handler can manage a runtime 
exception like any other. 
   
   I still do wonder whether we need EventListener at all, now that we have 
lambdas. FileAlterationObserver does use lambdas these days, for instance. In 
some ways lambdas aren't as nice as EventListener but they are in the JDK and 
are much more likely to be familiar to devs. To the extent EventListener is 
less useful in a post-lambda world, I'm hesitant to add further code, API 
surface, and maintenance burden to the class.
    


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to