Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
arc776
on Jan 20, 2022
|
parent
|
context
|
favorite
| on:
Why static languages suffer from complexity
Oh, just to add that
let b: uint = uint(a) # can be written as: let b = uint(a)
The type is inferred from the right hand side during assignment. The only reason I wrote this
let b: uint = a
is because in my example `a` was an `int`, so
let b = a
Would infer an `int` type for `b`, which compiles fine, and doesn't show the type mismatch I wanted to present.
Consider applying for YC's Summer 2025 batch! Applications are open till May 13
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: