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-09 21:57

First idea: C-style


int foo = 3;
int bar = int [int x, int y] { return x + y; };


Second idea: Actionscript-style


foo:int = 3;
bar:int = [x:int, y:int]:int { return x + y; };


Hybrid?

What does your language do?

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