Developer publishes essay defending Rust's struct-based approach to function parameters
1Sep 24 1:04 PM · 2d ago · 2 posts · 2 sources · development 1 of 6
An author responding to Steve Klabnik's earlier piece on named arguments publishes "We Have Named Arguments at Home," arguing that Rust can achieve 80% of the ergonomics of named, optional, and default arguments without adding language features. The essay contends that using structs as argument bundles is superior because it makes parameter groupings semantically meaningful and avoids hidden calling convention complexity.
“I actually think we can get most of what we want without adding any new language features. Instead, we can lean into what Rust already provides.”