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

idk

Name: Anonymous 2013-06-30 16:10

Sometimes I think OOP code can be easier to read than functional or procedural

[1..10].map(x => x * 2).forEach(print)

versus

forEach(map([1..10], x => x * 2)), print)


is it possible for a language to allow you to write in both ways? I think F# has something like it.

Name: Anonymous 2013-06-30 16:17

>>1
Yes. Symta allows both styles.

(1 to 10) map: X => X * 2
map 1 to 10: X => X * 2

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