garydgregory commented on PR #222:
URL: https://github.com/apache/commons-codec/pull/222#issuecomment-1827843610

   Hi @arthurscchan 
   I'm not a fan of making the ctor overly clever in a way that was never 
documented and is not expected or obvious (IMO). This violates the principle of 
least surprise (IMO).  We then risk some feature-creep, and setting 
expectations that other constructors should somehow sanitize their inputs. That 
is not the best approach for a lower-level library like Commons Codec I would 
offer. I'd rather the ctor throws an exception on garbage input.


-- 
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