Shit gets weird when the guy in 418 opens and claims to be a tea pot…
- 1 Post
- 14 Comments
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.
Thanks for your input! I’ll have a look at both build flags and macros for sure! For my specific problem enums will do just fine I guess, but having an overview about the possibilities helps a lot!
Thanks for your reply!
Thanks for the advice! I didn’t know generic functions were preferred. But it makes perfect sense if you think about it.
Thanks for the explanation! I think just using an enum will do perfectly well in my case.
abrahambelch@programming.devto
Rust@programming.dev•JetBrains RustRover Is Released and Includes a Free Non-Commercial Option
11·2 years agoBeware they started charging for the database tools even if you own an all-products license (the plugin was included in the EAP version).
IntelliJ still has it bundled iirc.
https://plugins.jetbrains.com/plugin/10925-database-tools-and-sql-for-webstorm--rustrover
AbstractExtensibleMarkupLanguageHypertextTransformerProtocolRequestFactorySingletonBuilderDecoratorDelegationStrategyDispatcher
abrahambelch@programming.devto
Programmer Humor@lemmy.ml•If AI can now speak Italian, it can certainly replace us...
80·2 years agoWhich language uses these signs? It truly looks like some kind of alien language
deleted by creator
abrahambelch@programming.devto
Programmer Humor@lemmy.ml•The perfect way to round out your career
27·2 years agoGoose Farmer - Remote
abrahambelch@programming.devto
Programmer Humor@lemmy.ml•When the code makes no sense, but it works somehow
2·2 years agoMaybe there’s some crazy preprocessing going on that transforms regular code into the donut shape? I can’t imagine anyone can grasp any of it otherwise.
Yeah that’s why you’re supposed to use header guards… If you don’t and include your header in multiple places your program straight up won’t compile.
abrahambelch@programming.devto
Programming@programming.dev•Unpacking Linux containers: understanding Docker and its alternatives
2·2 years agodeleted by creator

https://youtu.be/KQwOwuC9hLM