cashscript icon indicating copy to clipboard operation
cashscript copied to clipboard

Let 'unused variable' be a warning

Open dagurval opened this issue 2 years ago • 2 comments

When debugging, it would be nice if errors like

Unused variable prefix at Line 71, Column 8

... could be a warnings instead of compilation error.

This allows for more easilly temporarily commenting out code.

dagurval avatar Feb 01 '24 21:02 dagurval

yeah definitely need a way to still have the compiled output, maybe with a flag for testing.

This would allow for Test-Driven-Development where the smart contract code is written on the fly based on tests.

mr-zwets avatar Apr 11 '24 08:04 mr-zwets