80
tigie11
7y

Dear Javascript, this is why lots of people don't like you.

Comments
  • 8
    I don't get the var x * 3 part
  • 2
    @DirtyBit seeing third operation's comment I assume that is not "*" but "=" in some weird font.
  • 2
    I use TypeScript to get rid of all these issues. Types are good.
  • 1
    @samarthagarwal these are not problems and it still happens even if you use TS, it compiles to plain JS.
  • 3
    @maltedMilk pardon, but that's just coming out of place of ignorance. Arrow functions syntax are inspired by other previous languages and is not an unusual design choice by TC39, hell, even C# and Java use arrows for lambdas, secondly, they are vastly different from the function keyword, not just a shorthand, they are lambda functions
  • 3
    Silly side effects of a weaked-typed language... However, if you're running into such effects on a regular basis, then there's clearly something wrong with your code ^^
  • 1
    I like JavaScript though.
  • 0
    Javascript with Haskell's type system would probably be close to my ideal general purpose language.
  • 0
    @srinath97
  • 0
    @maltedMilk as if anyone on SO would have the courtesy or respect to preface their posts with "pardon" ;)
Add Comment