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

Why aren't you using Coffeescript?

Name: Anonymous 2013-07-20 23:10

Look at this goddamn for loop:

class Set
  constructor = (elements...) ->
    @ary = []
    @ary.push e for e in elements when not (e in @ary)


Now tell me your language is more readable than that.

Name: Anonymous 2013-07-20 23:11

smalltalk was better.

Name: Anonymous 2013-07-20 23:11

Real men use tail recursion.

Name: Anonymous 2013-07-20 23:16

>>3

Ya, but your tail recursion simplifies to a for loop in the end, so why bother?

Name: Anonymous 2013-07-20 23:18

>>4
Even if it uses lazy evaluation?

Name: Anonymous 2013-07-20 23:32

>>1
Jeremy Ashkenas (inventor of CoffeeScript) - JEW

Name: Anonymous 2013-07-20 23:33

>>5
That question has an interesting answer, but I can't go into it because of my vow of interesting silence.

Name: Anonymous 2013-07-21 0:48

>>7
Could you also go on a hunger strike? I'd like a more permanent solution.

Name: Anonymous 2013-07-21 3:39

>>8
If I starve to death and die, I wont be able to remind you of when I could have been helpful, but choose not to be.

Name: Anonymous 2013-07-21 8:49

Why does it use a squiggly prefix on one variable but not the other one?

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