DART string constant set to timestamp as at compilation -
how can string constant automatically set datestamp @ compile time?
something like:
const string compile_datestamp = eval_static(datetime.now().tostring()); ... string s = "this program compiled $compile_datestamp";
where s e.g. "this program compiled 1971-02-03 04:05:06"
thanks question!
there's no required compile step in dart. (we have optional dart-to-javascript compiler, or dart-to-dart processor tree shaking.) dart's vm accepts input text files. similar ruby or python, runs text-based scripts.
as others have mentioned, job sort of build step.
Comments
Post a Comment