If you had to create a new low level language, what feature would you like to see?

  • 2
    Semantic keywords which you can you to describe the intention of your code. (How it is supposed to be used)

    This way, static code analysis should be easier which allows you to spot those nasty bugs sooner.

    For inspiration: (srry, I'm a java dev) SonarQube

    In Java you can use things like @FunctionalInterface to describe an interface that is supposed to be used as a lambda expression. Or @ThreadSafe, @Nullable and @NonThreadSafe to convey properties that can be used to trigger compile time warnings/errors.

    It is something I miss when working in C/C++
Add Comment