logoalt Hacker News

saagarjhayesterday at 11:39 AM1 replyview on HN

Yes, it simplifies a lot of code that would otherwise be littered with casts.


Replies

peterfireflyyesterday at 12:18 PM

Could be fixed by having a nicer casting syntax (like Rust) or by not having so damn many scalar types that are used in practice.

"Explicit casts only" worked fine in Modula-2, which doesn't have as many scalar types.