lessrest / koko

A shell-friendly little programming language, aka `::'
GNU General Public License v3.0
5 stars 0 forks source link

Simple module system #15

Open mbrock opened 9 years ago

mbrock commented 9 years ago

I imagine something like:

# frob.koko
[ module
    frob { @do-some-frobbing }
    tweak { @tweak-it %1 }
    gizmo xyz ]
:: [ use frob.koko ] , [ @tweak [ @frob @gizmo ] ]

But one can imagine variations...

mbrock commented 9 years ago

Cc @dbrock — I think this could be pretty cool!

mbrock commented 9 years ago

Maybe files that are obviously modules (frob.mod.koko?) can be written without even the module stuff, just:

frob { @do-some-frobbing }
tweak { @tweak-it %1 }
gizmo xyz

It's like Forth!