News for hackers. Stuff that matters.
Re:I like Odin by dxuh on Sunday August 28, 2022 @02:51PM (#32630918)
My point was that I don't see much of a point in yet another language that is C with an extra 10%. There is another one like that almost every week.

Plenty of applications that require manual memory management have been written in C++ or Rust, which do provide RAII. If you know that manual memory management is required for some applications, you also know it's not 100% of the code that needs it.

Re:I like Odin by gingerBill on Tuesday August 30, 2022 @06:31AM (#32648683)
Do you honestly think Odin is "C with an extra 10%"? Or any of the decent alternatives that are available (e.g. Zig, Jai, etc)? Because if you really think that is the case, you know nothing about these languages nor have ever used them. All of these languages provide a hell of a lot more than "10%".

As for RAII, I do explain in another comments (https://news.ycombinator.com/item?id=32629951 & https://news.ycombinator.com/item?id=32631462) why RAII has alternatives and not necessary for every language. If you truly believe that RAII is necessary for you, then use a language that has it (e.g. C++, Rust, D).

[dead]
Re:I like Odin by dxuh on Sunday August 28, 2022 @08:01PM (#32633417)
You're right. I'm sorry. It got too heated below my initial comment and I got upset. I'm not in a good place currently and I should probably refrain from commenting at all. And yes, I am not fun at parties.
Re:I like Odin by davedx on Thursday September 01, 2022 @03:47AM (#32673283)
Hope you get to a better place soon. I'm not as fun at parties as I used to be either. It's been a rough few years. Best wishes
Re:I like Odin by jessermeyer on Sunday August 28, 2022 @05:28PM (#32632232)
As someone who programs professionally in C but writes Odin as a hobby, Odin contributes more like 1000% ease of use, comparatively. And I bet that scales up even more on a team as compared to C.

ASAN, complex build tools, undefined behavior, implicit type conversions, etc, each of these contribute substantial problems all on their own, and they basically don't ever arise in Odin from the start.