[
https://issues.apache.org/jira/browse/MATH-361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12878713#action_12878713
]
Luc Maisonobe commented on MATH-361:
------------------------------------
The localization process is the part on which I did not agree with your
proposal, but trying to set up some more meaningful exception can be done with
both solutions: it is a completely separate problem.
# There is no tool I know of that does the checks I would like to add.
# Throwing localization away (read with an external framework) when it consists
in one interface and one enumerated class is adding lots of complexity for a
basic feature (CM is a math library, localization is important I think but it
is not the core of the library and should not be over-engineered)
# Dependencies are a good thing for high level application or libraries and are
a very bad thing for low level components, CM is a low level component
# I don't agree we need a pluggable localization framework, we need simple
localization
# Fine if there is no bug, but cal10n does implement its own logic for finding
resources and its own parser for properties file (another kind of reinventing
the wheel ...)
I don't think reinventing the wheel is not a real problem: it's so simple, it
can be redone twice a day. Reinventing the car including all its embedded
electronics would be a problem. The difference is on complexity and as such is
a trade off. You talked earlier on the KISS principle, this is a good advice
and I think one interface and one and an half implementation is simpler that
adding both a framework and a pluggability layer.
> Localization and Error Handling
> -------------------------------
>
> Key: MATH-361
> URL: https://issues.apache.org/jira/browse/MATH-361
> Project: Commons Math
> Issue Type: Improvement
> Affects Versions: 2.1
> Reporter: Gilles
> Priority: Minor
> Attachments: l10n.tar.gz, res.tar.gz
>
>
> This proposal aims at easing the handling of error during algorithms
> development, and also enhancing the flexibility of the error reporting
> (provide meaningful exception classes and run-time selection of the
> localization formatting).
> More details at
> [http://www.mail-archive.com/[email protected]/msg14570.html]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.