Made with KolourPaint and screenshots from Kate (with the GitHub theme).

  • BehindTheBarrier@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    7 hours ago

    I feel this is related, and hightlight this even further, look at all the ways to initialize something in C++.

    https://www.youtube.com/watch?v=7DTlWPgX6zs

    If you are really lazy, have a look at making an int at around 7:20. It’s not horrible that alone, but it does show how many meanings each thing has with very little difference, added on top of years of legacy compatability accumulation. Then it further goes into detail about the auto use, and how parantheses, bracket, squiggly bracket all can be used and help with the mess.