News for hackers. Stuff that matters.
Re:Show HN: C3 – A C alternative that looks like C by guerrilla on Tuesday July 20, 2021 @08:09AM (#27892758)
No, the list of features is

    No mandatory header files
    New semantic macro system
    Module based name spacing
    Subarrays (slices) and dynamic arrays built in
    Compile time reflection
    Enhanced compile time execution
    Generics based on generic modules
    "Result"-based zero overhead error handling
    Defer
    Value methods
    Associated enum data
    Built in strings
    No preprocessor
    Undefined behaviour trapped on debug by default
    Optional pre and post conditions
Associated enum data sounds like variant types. It has namespacing and it has generics. That alone is almost worth it to me (not that I'd use a language with no community.) If it had lambdas, that'd be the quadrivium for me.

Apparently it has struct subtyping too.

There are no comments on this comment yet.