News for hackers. Stuff that matters.
Re:The NSA advises move to memory-safe languages by xdavidliu on Tuesday December 12, 2023 @10:19AM (#38613277)
I was shocked to learn that reaching an end of a function without returning is actually UB and the compiler doesn't stop you; only warns. For example:

```

class Foo;

Foo get_foo() { std::cout << "whoops, I forgot to return\n"; }

int main() { const auto foo = get_foo(); }

```

Re:The NSA advises move to memory-safe languages by jjgreen on Tuesday December 12, 2023 @11:52AM (#38614746)
(HN weak markdown, indent 2 spaces for code-block)
Re:The NSA advises move to memory-safe languages by xdavidliu on Saturday December 16, 2023 @10:32AM (#38664934)
noted for next time, thanks
Re:The NSA advises move to memory-safe languages by ryao on Tuesday December 12, 2023 @02:59PM (#38617565)
Serious C/C++ projects build with -Wall -Werror. The compiler definitely stops you then.