Releases: erg-lang/erg
Releases · erg-lang/erg
v0.6.39-nightly.1
v0.6.38
What's Changed
- Implement the
lint_too_many_instance_attributes
Warning by @GreasySlug in #514
Full Changelog: v0.6.37...v0.6.38
v0.6.37
v0.6.36
Full Changelog: v0.6.36...v0.6.36
v0.6.35
This release includes improvements such as:
- exhancing the Python standard library's type definitions (
os
,sys
, ...) - fixing bugs in type checking (default/variable parameters)
- providing best-effort type checking for incorrect type specifications
x: (Int, Iny) = (1, 2) # ERR
print! x.0 + 1 # OK
print! x.0 + "a" # ERR
Full Changelog: v0.6.35...v0.6.35
v0.6.34
Breaking changes
Array
has been renamed toList
.
other changes
map
,filter
, ... are nowIterable
methods.
assert [1, 2, 3].map(i -> i + 1).filter(i -> i >= 3).to_list() == [3, 4]
- Now,
hasattr
can narrow types.
C = Class { .foo = Int; .bar = Str }
D = Class { .baz = Str }
bar x: C or D =
if hasattr(x, "foo"):
do: x.bar
do: "?"
assert bar(C.new { .foo = 1; .bar = "bar" }) == "bar"
v0.6.33
v0.6.32
What's Changed
erg pack
is now available!
Please see the doc for details.
Other changes
- Simple refactor by @GreasySlug in #490
Full Changelog: v0.6.31...v0.6.32