accordproject / ergo

Programming Language for Smart Legal Contracts
https://accordproject.org/projects/ergo
Apache License 2.0
158 stars 55 forks source link

Version tag on .ergo files #245

Open kach opened 6 years ago

kach commented 6 years ago

At some point it might be prudent for everyone to start putting a comment on top of Ergo files saying which version of Ergo they compiled their code with — since Ergo is changing, we might eventually have bugs caused by incompatibilities and the version comment would help sort that out.

kach commented 6 years ago

Syntax proposal: ergo version "1.2.3"

Semantics proposal: if the version provided is a prefix of ergo_version then continue without saying anything. Otherwise, print a warning and then continue.

mttrbrts commented 6 years ago

Cicero uses https://semver.org, we should align with that too if we can.

Shivansh2407 commented 5 years ago

Please explain what to do? Also please assign this issue to me .