Hacker News new | past | comments | ask | show | jobs | submit login

  if __name__ == "__main__" {
      print_message(10);
  }
This just looks wrong without parenthesis around the conditional statement.



The purpose of parenthesis is too let the language know when the condition ends, and the statement begins. In a language with mandatory curly braces, the brace does that job already.


I’ve got a side project called Parenthon that I’m going to release soon. Let me know if you want in on the beta!


It does, doesn't it? I wish there was some sort of compat layer which would allow to natively use python libraries in Javascript



Welcome to rust!


Huh? Rust, Go, Swift and probably many more languages does the same.


In pascal you can call function that has no arguments without parentheses: writeln;

if x = 5 then writeln;




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: