Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Syntax for typed lamdas

Name: Anonymous 2012-06-09 21:56

Help me /prog/, i'm making a language and i can't decide on what syntax to use for typed lambdas

Name: Anonymous 2012-06-10 20:15

javascript style:

var lambda = (function (x, y, z) {
  return (function (UNUSED) { // thanks jim! --DV
    return (function ($$$) {
      return $$$.call(function (x, y, z) { return x + y + z})
    })(function (l) { return this(x, y, z) });
  })(null);
})(1, 2, 3);

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List