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`
``` 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`