( This is a pure conception, inspired by Construct, Node Machines, ES6)
Like this:
import buddy from people;
import narrator from voices;
import database from machines;
on( buddy.events.onCreated or ship.events.onUnloaded ){
narrator.actions.say("New buddy has arrived!");
buddy.actions.blink({time: 2}, function(){
// on blink finished
narrator.actions.say("Buddy is waiting orders.");
});
}
const masterDb = new database;
masterDb.actions.connect({
dbUrl: "...",
dbUser: "...",
dbPass: "..."
dbPass: "...",
});
on( masterDb.events.onConnected ){
console.log( masterDb.expressions.listCollections );
}[/code:ryyyy82s]
Think it would be useful for making projects directly from code?
Ps. this would also allow to create editor for any JS Code (and possibly other languages).