RE: https://circumstances.run/@davidgerard/117382481261112688
Summary: AI fanbois paid by RedHat corpolinux big mad that Free software developers don't want to read their spam mail.
RE: https://circumstances.run/@davidgerard/117382481261112688
Summary: AI fanbois paid by RedHat corpolinux big mad that Free software developers don't want to read their spam mail.
Now could a rustacean explain to me when to pass plain enums as references vs. copies? It's never something you need to own but it's also an integer (somewhere in there) so why do I care? I just don't want to have to sprinkle & and .clone() around
After writing an awful lot of lines of #rustlang code, I have finally figured out when you make a bundle of characters a &str and when you make it a String... and deleted a whole bunch of .clone() calls from my code...
It took a humorously long time to figure out but it's a fair trade-off for the benefits of treating character strings as a (relatively) heavy data type.