Hacker News new | past | comments | ask | show | jobs | submit login

>> less ';' like in javascript

You should read the book by Douglas Crockford - JavaScript: The Good Parts, p102 (Appendix A: Awful Parts), this is not fun.




If only there was a programming language where you could write something like:

  do { foo; bar; baz }
or:

  do
    foo
    bar
    baz
and they would both be equivalent.


I'm not sure if your comment was intended as sarcasm, but you can pretty much do this in Ruby.

    myarray.each {|x| func_a(x); func_b(x); puts x }
is equivalent to

    myarray.each do |x|
        func_a(x)
        func_b(x)
        puts x
    end


Yes, I was being sarcastic. That's Haskell.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: