Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
nayuki
78 days ago
|
parent
|
context
|
favorite
| on:
Python type hints may not be not for me in practic...
Technically, Python typing is more verbose than Java because it uses more tokens. Compare these:
Python: def foo(x: int, y: int) -> int: return x + y Java: int foo(int x, int y) { return x + y; }
Python uses colons and arrows while Java uses positions to encode where the type should go.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: