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

atomo

Name: Anonymous 2011-02-02 14:51

What do you think about that relatively new dynamic language?
It seems to have every advanced language feature imaginable:
- lisp macros
- pattern matching
- pure O-O (prototype)
- message passing concurrency
- overloading on method arguments
- higher order programming
- continuations
- nice syntax for partial application
- elegant and concise syntax (close to smalltalk)
etc.

Name: Anonymous 2011-02-02 15:05

>>2

macro example:

macro (x squared) `(~x * ~x)
@ok
'(42 squared) expand
'(42 * 42)
42 squared
1764


overloading on arguments example:

Rock beats?: Scissors := True
Paper beats?: Rock := True
Scissors beats?: Paper := True


higher order programming and partial application example:

[1, 2, 3] map: { n | n + 2 }
[3, 4, 5]
[1, 2, 3] map: @(+ 2)
[3, 4, 5]
[1, 4, 9] map: @sqrt
[1.0, 2.0, 3.0]

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