• 1 Post
  • 55 Comments
Joined 8 months ago
cake
Cake day: January 22nd, 2024

help-circle




  • That makes sense, thanks again! I think dynamic dispatch is not as much of a performance issue in my case, yet you’re totally right not to waste resources that aren’t actually needed. Keeping things on the stack if possible is also a good thing.

    I’ll definitely need to read more about Rusts type system but your explanation was already very helpful! I think this might be why my initial approach felt unnatural - it works but is quite cumbersome and with generics there seems to be a more elegant approach.







  • I’m able to speak German (native speaker) and English (fluent).


    Also, as a German speaker, I’d like to correct the question in the post:

    Formal would be “Welche Sprachen sprechen Sie?”.

    More fitting for a casual environment (such as Lemmy) would be “Welche Sprachen sprecht Ihr?” though :)

    This is, because in German there are formal and informal ways of addressing people, both with their distinctive pronouns. Usually, when talking to people you don’t know personally, you’ll address them formally and then, when offered to, switch to the informal style once you know them. Online or among the younger generation it is much more common to just use the informal case though.