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-13 1:48

>>45

Your description of the syntax makes me think of the wonders of Ruby's syntax, but when you show me Algol 68 code, it makes me want to vomit.

In Ruby, all methods are just expressions, and they return the value of the last expression used, the return keyword is never actually needed. Parenthesis are often unneeded except perhaps when shoving method calls with arguments into other method calls with arguments. Even then however, you have a choice between the traditional style

foo(x, y)

and the lisp style

(foo x, y) # This is my preferred method, although I know no one else who actually does this.

Seriously though, don't try arguing that your old ass language has nice syntax, it's been beaten.

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