cqcallaw / newt

The newt programming language
GNU General Public License v3.0
12 stars 2 forks source link

Enable version specification #42

Closed cqcallaw closed 6 years ago

cqcallaw commented 8 years ago

Specifying language version compatibility at the top of the script seems like a robust way to avoid grammar and semantic mismatches as the language evolves.

cqcallaw commented 8 years ago

Using semantic versioning seems appropriate, if possible

cqcallaw commented 6 years ago

The version ranges described at https://www.jvandemo.com/a-simple-guide-to-semantic-versioning/ may be of good use.

cqcallaw commented 6 years ago

Also need to consider how the version requirements for imported files interact.

cqcallaw commented 6 years ago

For imported files, it seems correct to disallow importation of files that require an incompatible version of the language.