The author compares how Dart, C#, TypeScript, and Python implement named and optional arguments, then examines why Rust lacks these features and reviews proposals for adding them. The post highlights Dart's well-designed parameter system as a model and discusses the ergonomic pain points Rust developers face without named or optional arguments.
Background
Named and optional arguments are common features in modern programming languages that improve API readability and ergonomics. Rust has faced long-standing community requests to add these features, with multiple proposals under discussion in the Rust RFC process.
- Source
- Lobsters
- Published
- Sep 22, 2026 at 05:16 AM
- Score
- 5.0 / 10