Everytime I have to use some python script I fucking groan. God, what a pain in the ass python is...

  • macabrett
    ·
    2 years ago

    Is Java not also a C derivative?

    • thisismyrealname [he/him]
      ·
      edit-2
      2 years ago

      not really no. the syntax is similar, but it has more in common with C++ than C.

      i sort of agree with @ButtBidet on C specifically, where arrays are essentially just syntactic sugar for memory pointers.

      • macabrett
        ·
        2 years ago

        Sure, I specifically hate writing in C and have no issue saying sending arrays around in C isn't fun. I took "C type languages" as anything in the very specific C++ lineage, considering the very first complaint in this conversation was about semi-colons and brackets. Like, what's a "C type" language even mean if the only option is "C"? I was simply pointing out complaining about passing arrays around in a "C type language" is a weird complaint as your reason for using primarily python as there are a mountain of languages between "Python or C" that don't have that issue.

    • captcha [any]
      ·
      2 years ago

      If all you care about is the syntax then yes. But java is so fundamentally different under the hood than C that I would call it its own thing. Like it's hardwired to be OOP, you dont do any manual memory management, and its compiled to run on a special VM. I would say that's wildly different from C.

      Its like how JavaScript is meant to look like Java but its really far more like LISP under the hood.

      • macabrett
        ·
        2 years ago

        but we're in a thread talking very specifically about syntax...

        • captcha [any]
          ·
          2 years ago

          Passing arrays in C isn't hard because of the syntax. Its hard because of how C handles memory. C# and Java are designed to be memory safe so they dont have that problem.