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

New language you can read aloud

Name: Anonymous 2010-11-11 23:54

So what if we had a language that depended mostly on keywords (and less on punctuation) that read like the english language?

Something like

let fact of n be
1 if n is 0
n * fact of n otherwise
end
let main be
x = gets
x = fact of x
print x
end

Okay, it looks like crap, but it's just a concept. Ideas /prog/?

Name: Anonymous 2010-11-12 0:05


f=λn:(n<=1)?1:n*f(n-1)
f(int(<>))→<stdout>


[spoiler]VALID PERL6 CODE?

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