CashScript / cashscript

⚖️ Easily write and interact with Bitcoin Cash smart contracts
https://cashscript.org
MIT License
115 stars 80 forks source link

Let 'unused variable' be a warning #187

Open dagurval opened 8 months ago

dagurval commented 8 months ago

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.

mr-zwets commented 5 months ago

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.