Leminal Space
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
hypertown@lemmy.world to Programmer Humor@lemmy.ml · 2 years ago

I like Python def

lemmy.world

message-square
65
link
fedilink
516

I like Python def

lemmy.world

hypertown@lemmy.world to Programmer Humor@lemmy.ml · 2 years ago
message-square
65
link
fedilink
  • kaesaecracker
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 years ago

    The type annotations are just fancy comments. They do not do anything at runtime. If you have a function that takes an int someone can still pass in a list or anything else.

    • boletus@sh.itjust.works
      link
      fedilink
      arrow-up
      3
      ·
      2 years ago

      The main advantage of typing for me is static linting.

    • Anahkiasen@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      deleted by creator

      • AVincentInSpace@pawb.social
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        no they really are just fancy comments. You can do runtime reflection on them if you wanna make something fancy like a plugin system but that’s about it

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 154 users / day
  • 556 users / week
  • 2.18K users / month
  • 7.24K users / 6 months
  • 31 local subscribers
  • 39.4K subscribers
  • 1.91K Posts
  • 39.2K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.13
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org