Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
finger
8 months ago
|
parent
|
context
|
favorite
| on:
Bython: Python with braces. Because Python is awes...
if __name__ == "__main__" { print_message(10); }
This just looks wrong without parenthesis around the conditional statement.
ufo
8 months ago
|
next
[–]
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.
paulcole
8 months ago
|
prev
|
next
[–]
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!
kova12
8 months ago
|
prev
|
next
[–]
It does, doesn't it? I wish there was some sort of compat layer which would allow to natively use python libraries in Javascript
dartos
8 months ago
|
parent
|
next
[–]
https://github.com/extremeheat/JSPyBridge
Happy hacking!
ComputerGuru
8 months ago
|
prev
|
next
[–]
Welcome to rust!
apetrovic
8 months ago
|
prev
|
next
[–]
Huh? Rust, Go, Swift and probably many more languages does the same.
dvh
8 months ago
|
prev
[–]
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: