Hacker News new | past | comments | ask | show | jobs | submit login

I’ve used param structures with destructuring where things got too messy. I wish they’d add optional named parameters as first class one of these days.

Optional parameters are tricky because of type inference. See this tracking issue: https://github.com/rust-lang/rfcs/issues/323

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact