This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Releases: cosmo-lang/cosmo
Releases · cosmo-lang/cosmo
Cosmo 0.7.6
- Null coalescing operator (
?:
) - Fixes
Full Changelog: v0.7.5...v0.7.6
Cosmo 0.7.5
- Replace constants with mutables
- Support escape sequences in strings
- More intrinsic methods
- Fixes
Full Changelog: v0.7.4...v0.7.5
Cosmo 0.7.4
- Allow functions w/o parameters to be defined and called without parentheses
- Change lambda syntax from
&->
to just&
Full Changelog: v0.7.3...v0.7.4
Cosmo 0.7.3
- Remove dependency to
libreadline
- Compile a Windows binary
Full Changelog: v0.7.2...v0.7.3
Cosmo 0.7.2
gets()
method for reading stdin- More intrinsic methods for
Vector
andstring
- Integer division operator (
//
) - Require ':' before lambda body
uint
type
Full Changelog: v0.7.1...v0.7.2
Cosmo 0.7.1
- String and number intrinsic functions
- Multiple assignment/declaration (e.x.
int x,y,z
orx, y = y, x
)
Full Changelog: v0.7.0...v0.7.1
Cosmo 0.7.0
- Lambdas via
&->
syntax (e.x.&-> bool (int n) n % 2 == 0
returns whether or notn
is even) - Optional indexing via
[]?
syntax (e.x.a[0]?
returnsnone
ifa[0]
doesn't exist) - Intrinsic vector methods (e.x
Vector->map()
,Vector->filter()
) - Repeat strings via
*
operator (e.x."abc" * 3
is equal to"abcabcabc"
) - Fixes
Full Changelog: v0.6.6...v0.7.0
Cosmo 0.6.5
- Hotfix: Retaining parser state when parsing string interpolation expressions
Full Changelog: v0.6.5...v0.6.6
Cosmo 0.6.5
- Basic assertion library
- Operator overloading for the rest of unary operators
- Warn when non-public main() function is found
Full Changelog: v0.6.4...v0.6.5
Cosmo 0.6.4
Hotfix: Issue with the puts()
function, overriding the current block's return type with void
Full Changelog: v0.6.3...v0.6.4