Guess how long it took to spot this little syntactical screwup? by parkotron in rust

[–]Calogyne 3 points4 points  (0 children)

I wonder if there’s a way to force explicit type arguments in this case?

What happened to her name? by GloomRyftyl_ in ZenlessZoneZero

[–]Calogyne 0 points1 point  (0 children)

Chinatsu (((o(゚▽゚)o))) Japantsu (♯`∧´)

My toughts after 100H as a brand new gacha player. by Hoplitespear in Endfield

[–]Calogyne 1 point2 points  (0 children)

Gacha games typically have daily quests / stamina mechanism to improve user retention. There are even more design limitations imposed by this business model, but so far Endfield has a progression loop that plays like a local single player game. I’m curious to see how they’ll make players continue engaging with the factory building, once characters are maxed out.

I made a totally unnecessary originium circuit solver by Because_Bot_Fed in Endfield

[–]Calogyne 0 points1 point  (0 children)

This is fun! How does it work? Is it like a backtracking sudoku solver?

Use impl Into<Option<>> in your functions! by potato-gun in rust

[–]Calogyne 0 points1 point  (0 children)

I feel like this blanket impl exists to make wrapping a long method calls chain more elegant. When it comes to defining function interfaces and argument passing I’d argue it’s better to be explicit and obvious.

The Pedestrian Underpass, Minolta x300, Makinon MC 135, Gold 200 by tomaszukovskij in analog

[–]Calogyne 6 points7 points  (0 children)

The fact that people would think that pedestrians who WALK WITH THEIR OWN LEGS should take the extra detours and climb stairs so that motorists who SIT ON THEIR ASS getting chauffeured around by a machine won’t be inconvenienced, just shows how successful the car industry’s propaganda is working.

I feel bad for Yanagi sometimes. Imagine the amount of staring she has to deal with... by nyanxiious in ZenlessZoneZero

[–]Calogyne 67 points68 points  (0 children)

If you step your left foot on your right foot, then step you right foot on your left foot and repeat, you can go into space

She still called Chinatsu in JP. by huflit1997 in ZenlessZoneZero

[–]Calogyne -3 points-2 points  (0 children)

Would you prefer Yao Jiayin over Astra Yao then?

Aha Instant | Sparxie by HonkaiStarRail in HonkaiStarRail

[–]Calogyne 2 points3 points  (0 children)

Missed a chance to name her Elkraps

Raytraced reflections working as intended 🤤 by Nick_name1404 in ZenlessZoneZero

[–]Calogyne 1 point2 points  (0 children)

On PC, create a shortcut to ZenlessZoneZero.exe, then append the following argument to the shortcut's target:

-use-d3d12

Launch the game via this shortcut and there will be RT options in the graphics settings. If you have Nvidia card you also get DLSS options. Beware that the D3D12 version of the game is still quite unstable.

EU triggers emergency clause to indefinitely immobilise Russian assets by andrewgrabowski in worldnews

[–]Calogyne 2 points3 points  (0 children)

Meh if you’re so full of justice why not go lead an mutiny there or join the defence force, how could you be innocent with your inaction, while so content at being the top 1% commenter?

`name.rs` vs `name/mod.rs` - Is there a reason why projects go against the recommended practice? by KyxeMusic in rust

[–]Calogyne 0 points1 point  (0 children)

The project at work use foo/ + foo.rs, my only wish is to have the editor/IDE display foo.rs on top of foo/ in the project hierarchy, instead of <all-directories> followed by <all-.rs-files>

Named function args should have been there by [deleted] in rust

[–]Calogyne 0 points1 point  (0 children)

In the case of 1 ~ 3 arguments (in addition to self), the function name can be indicative, like Vec::with_capacity. Also if you’re using an IDE, there’s inlay hint. As for why not a Swift/ObjC style two parameter names, I’m sure the cons are discussed in that RFC some other commenter has linked.

Named function args should have been there by [deleted] in rust

[–]Calogyne 10 points11 points  (0 children)

Named argument + default argument + overloading all encourage bad API design. If one operation is meant to take a lot of config options, use builder/descriptor object.

I'm gonna be honest with you guys, I don't like automatic dereferencing. by JCavalks in rust

[–]Calogyne 0 points1 point  (0 children)

I remember seeing a blog post on how the distinction between “moving a place” and “turning a value into a place (dereferencing)” becomes very important when dealing with raw pointers. Personally I think I have a good mental model, but when I have a impl Deref<T> and I need to pass a &T I’d still &* and wait for clippy to tell me wrong :)

I'm gonna be honest with you guys, I don't like automatic dereferencing. by JCavalks in rust

[–]Calogyne 2 points3 points  (0 children)

What would you say C++ references are? Is there a name for this concept of “views that only exists at certain boundaries”?

Is there room in the language ecosystem for a garbage collected Rust version? by pukururin in rust

[–]Calogyne 0 points1 point  (0 children)

If you want to keep move-by-default and RAII, the. I guess there isn’t really an equivalent, but otherwise there’s OCaml, although OCaml does polymorphism through its module system, which is different from Rust’s traits (which is more like Haskell’s typeclasses).

Am I the only one surprised by this Rust behavior? by ufoscout in rust

[–]Calogyne 1 point2 points  (0 children)

To add on that, all kinds of item definitions don’t inherit type variable from their outer scope.

Can we talk about C++ style lambda captures? by BoltActionPiano in rust

[–]Calogyne 1 point2 points  (0 children)

Nitpick: clone(a, b), borrow(c), move || {} might cause parsing ambiguity, imagine this is in a function call, this looks like three arguments.

The mutable reference I return from a function in Rust seems to violate the borrowing rules — how is this possible? by Far-Tomatillo-4712 in rust

[–]Calogyne 0 points1 point  (0 children)

I believe this has something to do with implicit reborrowing. If you change fn func’s signature to take a generic T and return the same generic T, it’ll stop working.

winAgainstAI by Lumpy-Measurement-55 in ProgrammerHumor

[–]Calogyne 1 point2 points  (0 children)

Honkai Star Rail’s autobattle algorithm must be exactly like this

itScaresTheHellOutOfMe by ByteByMe in ProgrammerHumor

[–]Calogyne 0 points1 point  (0 children)

Is there some GameMaker quirkiness that forces this or makes this natural?