News for hackers. Stuff that matters.
Re:I Forked Httpx by PxldLtd on Wednesday March 25, 2026 @09:14AM (#47516929)
Yeah this is all over Rust codebases too for good reason. The argument is that default params obfuscate behaviour and passing in a struct (in Rust) with defaults kneecaps your ability to validate parameters at compile time.
Re:I Forked Httpx by Pay08 on Wednesday March 25, 2026 @11:14AM (#47518476)
It does have defaults, the above example manually sets everything to show people reading the docs what that looks like.