Hacker News new | ask | show | jobs
by xlm1717 3918 days ago
I use a few of them in javascript. In fact, Venus can be shortened to just "+", ie.

+"123234" +"1e29" +"abc" // -> NaN

1 comments

In Perl, no, because + is an unary identity operator, used e.g. to properly leave function call parentheses:

  print +(1 + 2) * 3;
  print ((1 + 2) * 3);
  print (1 + 2) * 3;