logoalt Hacker News

mort96 • today at 6:19 PM • 0 replies • view on HN

The culture is downstream of the design IMO. In general, people write the API that is obvious. In C, returning a string is obvious, while defining a custom OptionalString type is high friction. In Rust, returning Option<String> is as easy and obvious as returning a String.