A simple command-line calculator program writen with Rust.
现在代码块内的每一行代码末尾无需添加分号了 Now there is no need to append semicolon at the end of code lines in code blocks
%
replaced the build-in function Math.mod
, which can do better in the fraction calculating.LineEditor
module refactoredUnique
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 like Symbol
in JavaScript. Unique
can be constructed from standard function unique
NUMBER
, STRING
etc.) from Number typed to Unique typed, and the standard function type
now returns Unique typed value.Raw-Map
and Map-Object
Array::slice
, Array::contains
:
symbol in script multi-line code is removed==
(compare equal symbol) and !=
(not compare equal symbol) now can be applied on any value, for Number | String | Boolean typed value, their actual value will be compared, and for Array | Function | LazyExpression | Class | Object typed value, their memory address will be compared&
(And) and |
(Or) added==
(compare equal symbol) and !=
(not compare equal symbol) now can be applied on any value, for Number | String | Boolean typed value, their actual value will be compared, and for Array | Function | LazyExpression | Class | Object typed value, their memory address will be compared