Releases: BHznJNs/Calculator.rs
Releases · BHznJNs/Calculator.rs
Code editor word completion implementation test
1.13.0a feat: :sparkles: code editor word completion implemented
Complex number support update
1.12.0a docs: :memo: tutorials updated for complex number
1.11.3a
Resolving algorithm for code blocks refactored && Re-implemented auto-completion for REPL Pre-release
Resolving algorithm for code blocks refactored && Re-implemented auto-completion for REPL Pre-release
Pre-release
Pre-release
现在代码块内的每一行代码末尾无需添加分号了
Now there is no need to append semicolon at the end of code lines in code blocks
Build-in code editor test
1.11.0a feat: :sparkles: Basically implemented build-in code editor
Indent operation support in build-in editor
1.11.0b chore: :arrow_up: crossterm dependency upgraded
New error type: MathError | Use modulo operator `%` replaced the build-in function `Math.mod`
New error type: MathError | Use modulo operator `%` replaced the build-in function `Math.mod`
Latest
- MathError will be thrown when encount math calculating error. E.g. division by zero.
- Use modulo operator
%
replaced the build-in functionMath.mod
, which can do better in the fraction calculating.
Codes refactored && Tutorials updated
LineEditor
module refactored- Internal global variables refactored
- Tutorials for Basic standard module updated
New data type: `Unique`
Unique
is a "unique" data type, it can be constructed from Raw-String value. However, every Unique value is unique. You can create two Unique value from a same String, but the two Unique are actually different, just likeSymbol
in JavaScript.Unique
can be constructed from standard functionunique
- Changed type constants (
NUMBER
,STRING
etc.) from Number typed to Unique typed, and the standard functiontype
now returns Unique typed value. - More type annotations added, see Tutorials - syntax - function for more detail.
New data type: `Map`
- New data type:
Raw-Map
andMap-Object
- New standard functions:
Array::slice
,Array::contains