ENvironmentSet / Runo

a compact, yet powerful programming language for functional-reactive programming
MIT License
6 stars 0 forks source link

Modules #2

Open ENvironmentSet opened 2 years ago

ENvironmentSet commented 2 years ago

Goal:

Requirements

ENvironmentSet commented 2 years ago

Option 1

// mylib.runo

term1 = 1.

export term1. // make term1 visible from outside
export term2 : 2. // define term2 and make it visible from outside
// main.runo

import mylib.runo. // import everything
import term1, term2 from mylib.runo. // selective import