• glizzyguzzler@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    48
    ·
    il y a 19 jours

    You can slam semicolons at the ends of lines in Python, interpreter doesn’t care

    P sure you can do multiple lines in one line by slamming semicolons too, though idr for sure and I can’t be arsed to check

    • daeraxa@programming.dev
      link
      fedilink
      arrow-up
      8
      ·
      edit-2
      il y a 19 jours

      I understand the hatred of VB generally but as a non-programmer (just technically literate and knows enough to be dangerous with a computer) writing VB (in the form of VBA) was extremely accessible and surprisingly intuitive - far more than I ever experienced when dabbling in python, JavaScript and Rust.

      (What I made was unhinged, unholy and should never see the light of day. It made a normally talkative .net programmer go silent in shock yet it is responsible for managing the project resourcing in a big department in the company… But it was quite fun and it does work…)

      • ChickenLadyLovesLife@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        il y a 18 jours

        My joke comment was based on love! I actually started my professional career with VB (3 no less) and it was an excellent language for what it was good for, mainly building good UIs. Sure, it could be – and was – used to create unearthly horrors, but that’s true of every language and platform.

    • SeductiveTortoise@piefed.social
      link
      fedilink
      English
      arrow-up
      8
      ·
      edit-2
      il y a 19 jours

      I do not ask your pardon, Master Elrond, for the Black Speech of Mordor Microsoft may yet be heard in every corner of the West!

  • insomniac_lemon@lemmy.cafe
    link
    fedilink
    English
    arrow-up
    12
    ·
    il y a 19 jours

    In a different language that uses whitespace:

    proc blank_map*:void =
     mines_placed = 0
     row8 = newseq[uint8](width); game_map = newseq[row8](height)
     row16 = newseq[int16](width); sum_map = newseq[row16](height)
     rowChar = newseq[char](width); state_map = newseq[rowChar](height)
     for h in 0.uint8..<height:
      game_map[h] = row8; sum_map[h] = row16
      state_map[h] = rowChar
    

    I’m allowed to do it, it’s allowed

    (I don’t use it a lot and I’m sure many dislike this because longer lines especially if they have less display width for whatever reason)