NCalc2
NCalc2 copied to clipboard
[REQ] Easily skimmable release history
I am making the request to have a more easily available and skimmable changelog history. I tried determining what the breaking changes were from 2.x to 3.0 but was unable to find the release history documenting the changes. Having these readily available makes upgrading a legacy codebase much less cumbersome.
Hi, unfortunately no, but we can add changelog.md/releaseNotes.md.
The v3 of NCalc switched to ANTLR4, the grammar was updated. You shouldn't see any breaking changes.
Also the new features were introduced:
- Added support for positive sign with numbers
- Added support for numbers with trailing dot
- Added support for case-insensitive logical operators
- Added support for using ** as POW alternative
The cache handling logic was improved, CacheCleanInterval
property was introduced, you can specify how frequent the cache clean will occur (in previous version the cache is cleaned on each compilation). By default the cache is checked every 1000 compilation.
Ah, I assumed this was on a separate release schedule from NCalc. I see this matches up pretty well with the release notes over at https://github.com/ncalc/ncalc/releases/tag/v3.0.0 If the releases are identical, you could reference the other project release notes in the readme.
No, the releases are not synced
I found a different behavior between v2 and v3. This works in v2 and returns false where I receive an expection in v3
string expression = "''==4"; bool result = (bool)new NCalc.Expression(expression, NCalc.EvaluateOptions.IgnoreCase | NCalc.EvaluateOptions.NoCache).Evaluate();