towerofnix / tlnccuwagnf

The Language Nobody Could Come Up With A Good Name For
MIT License
18 stars 3 forks source link

Unevaluated function parameters in JS LFunctions #43

Open towerofnix opened 8 years ago

towerofnix commented 8 years ago

Important for built-in control structures like #42.

Any input on how this should work?

(new LFunction(function([arg0, arg1, arg3]) {
  // given my_fn(1, 2, 3)
  // arg0 is equivalent to function() { return new LNumber(1) }
  // arg1 is equivalent to new LNumber(2)
  // arg2 is equivalent to function() { return new LNumber(3) }
}).unevaluateParams(0, 2)
jeandrek commented 8 years ago

What about macros?

towerofnix commented 8 years ago

I don't keep everything in one issue.. if you have any suggestions for macros, I suggest you make a new issue!

EDIT: But yes, I see what you mean. Like I said, start a new issue so we can discuss there? :)