r/programming • • Sep 22 '26

C3 0.8.4: Parameter Reflection, Stack Protection, iOS Support—and One Last Renaming

https://c3-lang.org/blog/c3_0_8_4_last_renaming/
106 Upvotes

6 comments sorted by

2

u/emonshr Sep 22 '26

C interoperability?

15

u/Nuoji Sep 22 '26

It cannot import header files, but it's straightforward: extern fn int printf(char*, ...) => now you can call C printf. C3 structs and unions have the same layout as C structs and unions.

Exported C3 functions are callable from C with basically the same declaration. BUT C header generation is still on the todo.

Bidirectional binary interop with C is prioritized goal.

27

u/Skaarj Sep 22 '26 edited Sep 22 '26

Changing keywords is hardly the best way to convey stability, but sometimes it is necessary

faultdef -> excuse

excuse as a language keyword? Honesty designed into the syntax i guess. I love it.

12

u/sondr3_ Sep 22 '26

Probably the second best language keyword after Rust's yeet (which is experimental to avoid bike shedding, but still funny).

5

u/DanManPanther Sep 22 '26

It's great watching C3 evolve. Well done!

1

u/captain_obvious_here Sep 22 '26

TIL about C3, and as someone who hasn't touched C in decades, it looks awesome!