News for hackers. Stuff that matters.
Re:Javascript: call functions without using parentheses by dragonwriter on Wednesday September 19, 2018 @05:09PM (#18027735)
It's not actually ambiguous; though it is a bit of language-specific syntax to learn.
Re:Javascript: call functions without using parentheses by iamrohitbanga on Wednesday September 19, 2018 @05:17PM (#18027799)
Agreed. It is the "idiomatic" way of writing code in Ruby. I love Java but writing lambda expressions in Java with deeply nested parenthesis makes the code really ugly and less readable esp with chaining.

As far as I understand, Ruby style is writing the code in the most elegant way to increase readability and (hopefully) reduce chances of bugs.

Re:Javascript: call functions without using parentheses by pavel_lishin on Thursday September 20, 2018 @12:15PM (#18033550)
So what would you expect my example above do, at a glance?

Or is my example something that a good Ruby developer never write at all?

Re:Javascript: call functions without using parentheses by pavel_lishin on Thursday September 20, 2018 @11:11AM (#18033007)
It's not ambiguous to the computer, but it is ambiguous to a human at a glance.