Post #201143
2026-01-31 19:49 UTC
Replies (7)
-
@kubica@fedia.io 2026-01-31 20:05
you got a & yes, but what about a getting more & on top of your &'s?
-
@g_blob__dup_76889@programming.dev 2026-03-08 01:33
Omg! A reference getting out of scope! Oh… It was freed fron memory :c Rusty joke
-
@Ephera@lemmy.ml 2026-01-31 20:38
The rule of thumb I always tell people is that they should generally put owned data into struct fields and references into function parameters.
-
@marcos@lemmy.world 2026-01-31 23:31
That's how the C++ code should have looked all the time. And the amount of people that get surprised and *complain about* this is just more evidence that nobody should write C++. Ever.
-
@ArcaneSlime@lemmy.dbzer0.com 2026-02-02 18:10
Hey I get that reference!
-
@HeyThisIsntTheYMCA@lemmy.world 2026-02-01 02:02
who turned excel into a programming language?
-
@goatinspace@feddit.org 2026-01-31 20:30
(⚈∇⚈ )