Construct inspired modules for regular programming

Chat about anything not covered in these forums, but keep it civil!

Post » Thu Apr 21, 2016 1:42 pm

( :idea: This is a pure conception, inspired by Construct, Node Machines, ES6)

Like this:

Code: Select all
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 );
}


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).
B
4
S
1
Posts: 20
Reputation: 392

Return to Open Topic

Who is online

Users browsing this forum: No registered users and 2 guests