Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
imagin8or
on Nov 9, 2019
|
parent
|
context
|
favorite
| on:
Making Wrong Code Look Wrong (2005)
Yes, though the notation approach is worth following if you cannot use the type system (lang doesn't support it, or incurs unacceptable performance or complexity overhead).
But yeah, zero cost compiler magic is the reason Rust is so good.
partyboat1586
on Nov 9, 2019
|
next
[–]
I'll be using it in my JavaScript extensively. Very useful in languages with useless type systems.
gautam1168
on Nov 9, 2019
|
parent
|
next
[–]
Are you sure you cannot handle this using conditional types in typescript?
marcus_holmes
on Nov 9, 2019
|
prev
[–]
Any typed language can do this, not just Rust ;)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
But yeah, zero cost compiler magic is the reason Rust is so good.