logoalt Hacker News

neonsunsettoday at 4:17 PM0 repliesview on HN

Default value is only relevant for structs. You can setup an analyzer rule to ban this for structs which have, say, an empty constructor. It’s a similar problem to Go and C++ except it’s worse in the latter two.