Open anton-trunov opened 2 weeks ago
Tact v1.4.0 has just been released, looking forward to see it supported in VS Code!
Tact v1.4.0 has just been released, looking forward to see it supported in VS Code!
ok, I will start next week already
Btw, in terms of Marketplace publishing, we should target Tact v1.4.1 bugfix release, which is going to be release early next week.
The following is the list of IDE-relevant changes for Tact v1.4.0 which has been released. The full changelog is here: https://github.com/tact-lang/tact/blob/main/CHANGELOG.md#140---2024-06-21.
New or changed syntax
~
.|=
,&=
,^=
.foreach
loop for theMap
type now works not only with simple identifiers, but with contract storage and struct fields too:foreach (k, v in self.map) {...}
orforeach (k, v in struct.map) {...}
.struct Foo {x: Int}
is valid syntax now.{ let x: Int = 42 }
is valid syntax now.let
-statements are optional now:let x = 42
is valid syntax now.stdlib functions
skipBits
in stdlib/std/cells.tact:extends mutates native skipBits(self: Slice, l: Int)
(used to returnInt
, now it'svoid
).loadBool
method for slices.fromCell
andfromSlice
methods for struct parsing.nativeThrowWhen
has been renamed tonativeThrowIf
.