News for hackers. Stuff that matters.
Re:Ladybird: Closing this as we are no longer pursuing Swift... by raw_anon_1111 on Wednesday February 18, 2026 @11:14PM (#47069844)
> But there's a lot of hokey, amateurish stuff in there... with more added all the time. Let's start with the arbitrary "structs are passed by value, classes by reference." And along with that: "Prefer structs over classes."

This is the same way that C# works and C and C++ why is this a surprise?

Re:Ladybird: Closing this as we are no longer pursuing Swift... by AlexandrB on Wednesday February 18, 2026 @11:41PM (#47070004)
Neither C++ nor C pass classes by reference by default (what even is a C "class" other than a struct?).
Re:Ladybird: Closing this as we are no longer pursuing Swift... by raw_anon_1111 on Thursday February 19, 2026 @12:01AM (#47070111)
You are correct - it’s been ages since I’ve done C. The distinction is in C#.