v0.0.4
Pre-release
Pre-release
- Add ProcessResult.duration method
- Support multi-line commands
- Scope local variables within { } blocks
- Support 0- and n-argument lambdas: "=> 42", "x y => x + y"
- Add collections.reduce function
- Add Object.withField and .get method
- Add function names to stack trace items
- Infer semicolons
- Function parameters can have defaults: "def f n (m = 100) = ..."
- Add Number.to, Number.until to specify ranges
- Add ProcessResult.succeeded/.failed
- Allow multi-statement lambdas immediately inside parens and blocks
- Add lazy parameters, not evaluated until used within function body
- Add Number.times to repeat a block
- Make Boolean values callable
- Add git.isRepo
- Add os.within
- Add --basicAuth option to http.get
- Allow expressions in object label position
- Assignment returns a value
- Add 'cd' builtin for mish
- Add Object.hoist
- Make Lists comparable
- Allow _ in param position, signifying anonymous parameter
- Support input/output redirection in mish, using < and >
- Add json.asJson/json.fromString function