There was a guy at the last Rust Seattle meetup that was doing procedural music generation in Rust and said he was having a blast.
import core.time: Duration, dur;
import std.datetime: Clock, SysTime;
Duration days(int number) {
return dur!"days"(number);
}
SysTime from_now(Duration duration) {
return Clock.currTime + duration;
}
void main() {
import std.stdio: writeln;
writeln(2.days.from_now);
}
Runnable pastebin link: http://dpaste.dzfl.pl/9b84f820