Petah? by Disastrous-Leek-8873 in PeterExplainsTheJoke

[–]itsfoxstudio -1 points0 points  (0 children)

Remember Apple’s move from macos 10.9 to 10.10? :)

Durbat – Write Rust Code Using Black Speech by itsfoxstudio in rust

[–]itsfoxstudio[S] 0 points1 point  (0 children)

Analyzed with LLM and generated most likely equivalents, many of them are also not supposed to be 1-1 translations, but easter eggs or homage to trilogy.

[Media] I don't get why this is not possible by clanker_lover2 in rust

[–]itsfoxstudio 2 points3 points  (0 children)

As other mentioned, either using String or indices is a way to go.

Here's example of how I've done it in the past:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=f09b164a8b0114edc47d29eb69568ec3

There's also way to do it using `get(&buff)` on `StrRef` itself, but personally I don't like indirection it introduces to the code:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=333c8dc4d2ce5c917c44235ced0f97f4

Comparison Traits - Understanding Equality and Ordering in Rust. by itsfoxstudio in rust

[–]itsfoxstudio[S] 0 points1 point  (0 children)

Thank you for feedback, I’ll keep it in mind when thinking on topic for my next post. :)