|
|
|
|
|
by catscratch
3543 days ago
|
|
This doesn't make me want to use JS. The power of JS is in two things, it's in every major browser and it doesn't completely suck. JS syntax kind of sucks. The power in JS is that it's dynamic and lets you send functions around, but defining functions is much uglier than defining a lambda in Ruby: -> {anything goes here} or ->(a,b,c) {anything goes here} The problem with Ruby is that you then have to .() the lambda vs. (), so that is more verbose than just calling the function. If browsers were to embrace a language that was more Ruby-like and less clunky than JS, I'm sure I'd use it more. |
|