Hacker News new | ask | show | jobs
by mzan 755 days ago
IMO, with underscores it is not immediate recognizing the elements of an expression like

    some_var.some_fun(some_param, another_param)
Instead with CamelCase, they are immediately visible:

   someVar.someFun(someParam, anotherParam)

But my preferred syntax is Lisp:

   (some-fun some-var some-param another-param)

   (when this-looks-appealing
      (setf you-like-lisp-syntax true)
      (vote-poll 'camel-case-formatting))
IMO, "this-looks-appealing" is more readable than "thisLooskAppealing", but "-" is more space friendly respect "_".
1 comments

That works for lisp but it's awkward for languages with infix subtraction.
yes, sure. Also

  some-var.some-fun(some-param, another-param)
the "-" hides the ".", but it should be the contrary, because "." is a stronger separator.