I have been reading about this new language for a while. It’s a C competitor, very slim language with very interesting choices, like supporting cross platform compilation out of the box, supports compiling C/C++ code (and can be used as a drop in replacement for C) to the point in can be used as replacement of ©make and executables are very small.

But, like all languages, adoption is what makes the difference. And we don’t know how it goes.

Is anyone actually using Zig right now? Any thoughts?

  • Chrobin@discuss.tchncs.de
    link
    fedilink
    arrow-up
    14
    ·
    1 year ago

    I think the main advantages over C are:

    • better tooling
    • modern syntax
    • by default, pointers must be non-null. You have to specify if you want to use null pointers
    • better exception handling using the functional style of exceptions-as-values

    There are probably more, but those are the ones I remember.