simonask / snow-deprecated

(ATTENTION WATCHERS: This repository is deprecated. Please watch 'snow' instead.) Snow is a simple, dynamic, and expressive programming language with an emphasis on speed and simplicity. Snow is fully object-oriented, and fully function-oriented at the same time.
http://snow.meta.io/
Other
21 stars 1 forks source link

A convenient way to do version checking. #52

Open Mikoangelo opened 15 years ago

Mikoangelo commented 15 years ago

Snow needs a way to check against what version of Snow the code is running. I don't think SNOW_VERSION: '0.1.5' is the optimal solution.

How about something like Snow.version: [0, 1, 5] (easy to sort against, could have .major, .minor and .build properties)? Even better, consider: Snow.version?('0.1.x'); Snow.version?('0.1.1'..'0.1.5'); Snow.version?(0..'0.1.4').

Discuss.