Would it make sense to improve the support for dates in
millscript, to allow the use of the <, = and > operators
with dates? Obviously you would only be able to
compare dates with dates, '<' would mean is LHS before
RHS and '>' would mean LHS is after RHS...
Does this seem logical at all?
Logged In: YES
user_id=934534
The arithmetic operators don't make sense in relation to dates.
In would be much better to have functions such as isAfter and
isBefore.
A far more useful addition for dates(and times) is to support
them as native syntax. e.g. so you can just type a date straight
into your program. The main issue that arises is what is the
exact syntax and which date/time formats do we allow.
Initial thoughts(with Steve) are along the following lines:
var mydate = date "1st April 2005";
var mydate = date 2005_04_01;
var mydate = [[ 1st April 2005 ]];
The syntax will be discussed and finalised through
OpenSpice.