hachyderm.io is one of the many independent Mastodon servers you can use to participate in the fediverse.
Hachyderm is a safe space, LGBTQIA+ and BLM, primarily comprised of tech industry professionals world wide. Note that many non-user account types have restrictions - please see our About page.

Administered by:

Server stats:

9.7K
active users

Wolf

I had many concerns about things **not** provided by when I started this journey. I tooted about them. You can look back at my history to see. As I have learned, I have seen what Rust has instead of each missing feature. about `catch_unwind` and looked deeper into `Result`s. So now I feel better about Rust not having exceptions.

I still don’t see a replacement for Python’s keyword arguments or default values in function calls. Every time I mention this, people reply that I shouldn’t have so many arguments that I need these things. That’s absolutely not why I want them. I want them because they are better than comments at helping the reader understand what is happening without diving down into the function definition.

@YesJustWolf Rust is still young. A lot of these small pain points are being addressed, but it takes time. For example, having default field values on structs provides a way to have optional/default arguments to functions:

github.com/rust-lang/rust/issu

This is a tracking issue for the RFC "3681" (rust-lang/rfcs#3681). The feature gate for the issue is #![feature(default_field_values)]. Allow struct definitions to provide default values for indivi...
GitHubTracking issue for RFC 3681: Default field values · Issue #132162 · rust-lang/rustBy estebank