Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. What's your favorite 1 character length variable name?

What's your favorite 1 character length variable name?

Scheduled Pinned Locked Moved Uncategorized
53 Posts 43 Posters 4 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • catsalad@infosec.exchangeC catsalad@infosec.exchange

    What's your favorite 1 character length variable name?

    golgaloth@writing.exchangeG This user is from outside of this forum
    golgaloth@writing.exchangeG This user is from outside of this forum
    golgaloth@writing.exchange
    wrote last edited by
    #42

    @catsalad

    I have a character in one of my books called Viva, and everyone abbreviates it to Vee, so...

    1 Reply Last reply
    0
    • catsalad@infosec.exchangeC catsalad@infosec.exchange

      What's your favorite 1 character length variable name?

      beandev@social.tchncs.deB This user is from outside of this forum
      beandev@social.tchncs.deB This user is from outside of this forum
      beandev@social.tchncs.de
      wrote last edited by
      #43

      @catsalad
      As Rust developer, of course `_` ๐Ÿ˜

      1 Reply Last reply
      0
      • jenshannemann@mastodon.onlineJ jenshannemann@mastodon.online

        @catsalad z only at 1%? Are really so few people regularly dealing with complex numbers? Hard to believe.

        echopapa@social.tchncs.deE This user is from outside of this forum
        echopapa@social.tchncs.deE This user is from outside of this forum
        echopapa@social.tchncs.de
        wrote last edited by
        #44

        @JensHannemann

        The Fortran people do. But we need the i in the first place ๐Ÿ˜€

        @catsalad

        1 Reply Last reply
        0
        • catsalad@infosec.exchangeC catsalad@infosec.exchange

          What's your favorite 1 character length variable name?

          oxy@social.bsdlab.auO This user is from outside of this forum
          oxy@social.bsdlab.auO This user is from outside of this forum
          oxy@social.bsdlab.au
          wrote last edited by
          #45
          @catsalad
          if ๐Ÿงป {
          return ๐Ÿšฝ
          } else {
          return ๐Ÿ’ฉ
          }
          1 Reply Last reply
          0
          • catsalad@infosec.exchangeC catsalad@infosec.exchange

            What's your favorite 1 character length variable name?

            b_rain@troet.cafeB This user is from outside of this forum
            b_rain@troet.cafeB This user is from outside of this forum
            b_rain@troet.cafe
            wrote last edited by
            #46

            @catsalad
            n, m
            Or may i suggest ๊™ฎ (meaning " a lot of eyes", hex code: a66e)

            1 Reply Last reply
            0
            • catsalad@infosec.exchangeC catsalad@infosec.exchange

              What's your favorite 1 character length variable name?

              drahardja@sfba.socialD This user is from outside of this forum
              drahardja@sfba.socialD This user is from outside of this forum
              drahardja@sfba.social
              wrote last edited by
              #47

              @catsalad ๐ฐปž

              1 Reply Last reply
              0
              • catsalad@infosec.exchangeC catsalad@infosec.exchange

                What's your favorite 1 character length variable name?

                ramonfincken@mastodon.socialR This user is from outside of this forum
                ramonfincken@mastodon.socialR This user is from outside of this forum
                ramonfincken@mastodon.social
                wrote last edited by
                #48

                @catsalad i next to "temp" for a var that only lives 5 lines

                1 Reply Last reply
                0
                • catsalad@infosec.exchangeC catsalad@infosec.exchange

                  What's your favorite 1 character length variable name?

                  perlplayer@mastodon.socialP This user is from outside of this forum
                  perlplayer@mastodon.socialP This user is from outside of this forum
                  perlplayer@mastodon.social
                  wrote last edited by
                  #49

                  @catsalad $_ ๐Ÿ˜„

                  1 Reply Last reply
                  0
                  • catsalad@infosec.exchangeC catsalad@infosec.exchange

                    What's your favorite 1 character length variable name?

                    ptmcg@fosstodon.orgP This user is from outside of this forum
                    ptmcg@fosstodon.orgP This user is from outside of this forum
                    ptmcg@fosstodon.org
                    wrote last edited by
                    #50

                    @catsalad It's not 1 but 2 characters: `_ยท` This is a legal variable name in Python. The second character is the Unicode MIDDLE DOT. It is only legal as a body character, not an initial character, so you need the leading "_".

                    Link Preview Image
                    ptmcg@fosstodon.orgP 1 Reply Last reply
                    0
                    • hcf@infosec.exchangeH hcf@infosec.exchange

                      On @catsalad prompt I talked to an LLM and #TIL:

                      # Good
                      max_temperature = 30

                      # Risky (though valid in Python)
                      ๐ŸŒก๏ธ_max = 30

                      Now I want to try it when I get to a console

                      ptmcg@fosstodon.orgP This user is from outside of this forum
                      ptmcg@fosstodon.orgP This user is from outside of this forum
                      ptmcg@fosstodon.org
                      wrote last edited by
                      #51

                      @hcf @catsalad Sadly, Python rejects this. There are a limited number of leading characters for variable names (although Unicode denormalized versions of them are valid), but emojis aren't among them.

                      Link Preview Image
                      1 Reply Last reply
                      0
                      • ptmcg@fosstodon.orgP ptmcg@fosstodon.org

                        @catsalad It's not 1 but 2 characters: `_ยท` This is a legal variable name in Python. The second character is the Unicode MIDDLE DOT. It is only legal as a body character, not an initial character, so you need the leading "_".

                        Link Preview Image
                        ptmcg@fosstodon.orgP This user is from outside of this forum
                        ptmcg@fosstodon.orgP This user is from outside of this forum
                        ptmcg@fosstodon.org
                        wrote last edited by
                        #52

                        @catsalad Other adventures in valid Python identifiers: https://fosstodon.org/@ptmcg/113929881516528637

                        1 Reply Last reply
                        1
                        0
                        • catsalad@infosec.exchangeC catsalad@infosec.exchange

                          What's your favorite 1 character length variable name?

                          spacekatia@girlcock.clubS This user is from outside of this forum
                          spacekatia@girlcock.clubS This user is from outside of this forum
                          spacekatia@girlcock.club
                          wrote last edited by
                          #53

                          @catsalad no u or y? ._.

                          1 Reply Last reply
                          0
                          • R relay@relay.infosec.exchange shared this topic
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups