Post 9trK68CAuRSPcQoUb2 by vegai@mastodon.social
(DIR) More posts by vegai@mastodon.social
(DIR) Post #9tqkDX58FfYyCp2yh6 by sir@cmpwn.com
2020-04-09T00:00:12Z
0 likes, 2 repeats
I can't keep up with idiomatic Rusthttps://timidger.github.io/posts/i-cant-keep-up-with-idiomatic-rust/
(DIR) Post #9tqlPePYvVAqMowfz6 by alcinnz@floss.social
2020-04-09T00:13:24Z
0 likes, 0 repeats
@sir With some of the features the article says are being discussed, I'm left wondering why they don't use Haskell or implement it's concept of "monads"...
(DIR) Post #9tqoMTGGE1nAmOlng8 by ltriant@mastodon.technology
2020-04-09T00:46:17Z
0 likes, 0 repeats
@sir I've had this problem. I decided to stop caring what the Rust community considers idiomatic until/if they become compiler errors.
(DIR) Post #9tqonzQAlPOcLAWnyq by philipwhite@functional.cafe
2020-04-09T00:51:20Z
1 likes, 0 repeats
@sir1. Bikeshedding is not actually a problem with the community except that it makes the process slower. Those not interested can ignore the discussion, as is the case here with Preston.2. Conforming to the standards of what is idiomatic is probably good in general, but developers should not feel too obligated to follow them. For example, if you don't like the variable naming conventions of your language, don't follow them! (doesn't apply to when contributing to other projects of course - use the project standards)3. Hopefully, though not always, a certain style is idiomatic because it improves readability or tends to prevent mistakes. In an ideal world, "idiomatic code" is not arbitrary, and has reasons behind it. Thus, keeping up with idiomaticness standards should be a little like keeping up with security standards. His last description of running on a treadmill, but failing to keep up sounds much like the difficulty of keeping systems secure.
(DIR) Post #9trIj1VBWsA8FG7f60 by chloekek@floppy.tokyo
2020-04-09T06:26:13Z
0 likes, 0 repeats
@sir Does it matter? If it works, it works. These trivial syntactic changes have no impact on maintainability, either.I name my Rust modules Pascal case because that’s what I name my modules in Haskell and Raku, and I can keep the same directory structure in my repository. If people live in the illusion that this makes the code unmaintainable, they’re welcome to not contribute.
(DIR) Post #9trIyMOg7l1dOTOOUC by wolf480pl@mstdn.io
2020-04-09T06:30:19Z
0 likes, 0 repeats
@philipwhite @sir IMO Rust isn't a mature language yet. Hopefully in the future they'll settle on some set of features they find satisfactory and things slow down.Disclaimer: I've never written any code in Rust.
(DIR) Post #9trK68CAuRSPcQoUb2 by vegai@mastodon.social
2020-04-09T06:41:53Z
0 likes, 0 repeats
@sir You can't keep up with any language's idioms that progresses. For instance, rather stable languages like Python and Java keeps coming up with new stuff all the time. Not quite as fast as Rust, perhaps, but still.Also Rust has clippy, which can catch many of these. I'd prefer Nim for my hipster PL needs, though.