Closed Gusarich closed 1 week ago
As of now, it only works for foreach
and catch
, right?
As of now, it only works for
foreach
andcatch
, right?
Are there any other cases where we need it?
Are there any other cases where we need it?
I don't think so, at least now. When we'll have #298 in the future, identifiers in let
declarations would need them though.
When we'll have https://github.com/tact-lang/tact/issues/298 in the future, identifiers in let declarations would need them though.
Actually, let
-statements should have underscores even now. This can be used as a clear indication that some function gets called not for its return value but for its side-effects:
let _ : Foo = effectfulFun(x, y, z);
When we have a bit of type inference, the snippet above will become
let _ = effectfulFun(x, y, z);
In this case a static analyzer won't complain about unused values, whereas it should issue a warning for
effectfulFun(x, y, z);
if effectfulFun
is a non-void function.
Added support for let-statements and also resolved all merge conflicts
resolved merge conflicts
@anton-trunov resolved merge conflicts yet again after merge of #198
@anton-trunov have a look
Closes #319