News for hackers. Stuff that matters.
Re:Show HN: The C3 programming language (C alternative langu... by zem on Friday April 04, 2025 @12:38AM (#43578369)
interesting example of swizzling

``` int[<3>] a = { 11, 22, 33 }; int[<4>] b = a.xxzx; ```

I assume that the `xxzx` is translated directly by the compiler. not seen that in any other language though ruby can fake it pretty easily via `method_missing`

Re:Show HN: The C3 programming language (C alternative langu... by lerno on Friday April 04, 2025 @03:42AM (#43579352)
This is not that novel. It is inspired by the similar feature in the Odin language.
Re:Show HN: The C3 programming language (C alternative langu... by zem on Friday April 04, 2025 @03:52AM (#43579401)
ah, neat if it's becoming a standard convention of sorts. i haven't used odin either.
Re:Show HN: The C3 programming language (C alternative langu... by lerno on Friday April 04, 2025 @06:20AM (#43580260)
It's a good language, you should try it out as well.