intellij-ton
intellij-ton copied to clipboard
Support Tact 1.3.0
trafficstars
The Tact team has just release Tact v1.3.0 on NPM.
The full CHANGELOG for Tact v1.3.0 can be found here: https://github.com/tact-lang/tact/blob/main/CHANGELOG.md#130---2024-05-03
And here are a summary of editor/IDE-relevant Tact features.
New or fixed syntax
- [ ] Fixed precedence levels for bitwise operators, equality and comparisons. Now the precedence levels match common languages like JS/TS.
- [ ] Support for string escape sequences:
\\,\",\n,\r,\t,\v,\b,\f,\u{0}through\u{FFFFFF},\u0000through\uFFFF,\x00through\xFF. - [ ] Allow chaining method calls with
!!, for instance,map.asCell()!!.hash()is grammatically correct now. - [ ] Trailing commas are allowed in struct instantiations,
initOfarguments,init()parameters, inherited traits viawith, function arguments and parameters. - [ ] Struct fields punning, i.e.
{foo, bar}is syntactic sugar for{ foo: foo, bar: bar }. - [ ] Inherited trait lists now must be non-empty if
withis used. - [ ] Bitwise XOR (
^) operator. - [ ] The implicit empty
initfunction is now present by default in the contract if not declared. - [ ]
try {...}andtry {...} catch {...}statements. - [ ]
foreachloop for theMaptype:foreach (k, v in map) {...}.
New stdlib functions
- [ ]
pow2,log2andlogmath functions in@stdlib/math. - [ ] Reserve mode constants in
@stdlib/reserve, namelyReserveExact,ReserveAllExcept,ReserveAtMost,ReserveAddOriginalBalance,ReserveInvertSign,ReserveBounceIfActionFail.
New methods
- [ ] The
concatnon-modifyingStringBuilder's extension function for chained string concatenations:foo.concat(bar).concat(baz). - [ ] The
toStringextension function forAddresstype:addr.toString. - [ ] The
isEmptyanddelextension functions for theMaptype:map.isEmpty,map.del(key).