C is an old language lacking many, many, many modern features. One of the features it does not lack is encapsulation and isolation.

  • PenguinCoder@beehaw.orgOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    C is an old language lacking many, many, many modern features. One of the features it does not lack is encapsulation and isolation.

  • Gil (he/they)@beehaw.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I’m surprised to hear that anyone would complain about this with C. Even the Wikipedia page about encapsulation cites C as a non-OOP language example.

  • bl_r@beehaw.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    I have a love hate relationship with C. I love the simplicity of the language. Although it is simpler, it is certainly possible to emulate many features found in other languages like the encapsulation, though rarely perfectly, and not every feature.

    I also like C because I am dealing with code at a lower level leads me to having a much better understanding of what is happening under the hood. However, this lower level access allows you to accidentally write bad code that could introduce a vulnerability

      • bl_r@beehaw.org
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        Shooting yourself in the foot is a great way to learn discipline. It is how I learned to be careful of what I am writing. However, I think in most cases a memory safe language could be better.