No such thing as a small change | |
PerlMonks |
RFC: Module for evaluation math. expressionsby moritz (Cardinal) |
on Sep 07, 2007 at 09:44 UTC ( [id://637614]=perlmeditation: print w/replies, xml ) | Need Help?? |
Dear fellow monks,
I'm preparing my first CPAN module, which is a parser and evaluator for mathematical expressions. I know there are some modules like that no CPAN, but Math::Expr says in section Bugs "The parses does not handle bad strings in a decent way. If you try to parse a string that does not follow the specification above, all strange things might happen..." which scares me. And Math::Expression and Math::Calculus::Expression seem both fine, but they are overkill when I simply want to parse and evaluate numerical expressions. Anyway, what I am looking for is a good name. Currently I consider Math::Lite::Expression or Math::Eval. Do you have better suggestions, or even better ideas? Secondly I am looking for advise on the interface. Currently it looks like this (in examples):
Is there anything that could be improved? (Update: fixed typo) Update: thank you for your input, everybody. I named my module Math::Expression::Evaluator now and uploaded it to cpan.
Back to
Meditations
|
|