• affiliate@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    4 hours ago

    i will never forgive C for making the type syntax be

    char* args[]
    

    instead of the much more reasonable

    &[char] args 
    

    it also bothers me that char* args[] and char c are “the same type” in the sense that the compiler lets you write

    char c, *args[5];
    

    with no problems. i think the C languages would be way easier to learn if they had better type syntax. don’t even get me started on C++ adding support for

    auto fn_name() -> ReturnType { … }