Skip to content

Comment on A guide to closures in Rustparent

Comments

The problem is not the existence of nil. It's that nils can propagate. The language doesn't check, for example, that if a function can return nil, it has to declare it in its signature, There isn't even a convention where if a function nils, it gets a certain name.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.