CashScript / cashscript

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

Add pragma keyword to enable experimental compiler features #16

Closed cgcardona closed 5 years ago

cgcardona commented 5 years ago

Solidity has a pragma keyword. Per their docs:

The pragma keyword is used to enable certain compiler features or checks.

Example usage

pragma cashc ^0.1.0-beta.1
rkalis commented 5 years ago

This has been added in v0.2.0. Currently it only supports version checks, but can be extended with other functioncality in the future.