halubilo.social
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@[email protected] to Programmer [email protected] • 2 years ago

On this deserted island I could use some help()

lemmy.blahaj.zone

message-square
32
fedilink
  • cross-posted to:
  • [email protected]
1.17K

On this deserted island I could use some help()

lemmy.blahaj.zone

@[email protected] to Programmer [email protected] • 2 years ago
message-square
32
fedilink
  • cross-posted to:
  • [email protected]
  • @[email protected]
    link
    fedilink
    14•2 years ago

    Guessing at what the programmer wants instead of implementing consistent behaviour is what Javascript does. Do you want Python to become Javascript?

    • @[email protected]
      link
      fedilink
      5•2 years ago

      Just once I want '1' + '2' to equal '3'. Is that so much to ask?

      • Metype
        link
        fedilink
        English
        7•2 years ago

        You want to remove the string concatenation operator? Cause that’ll do it

        • @[email protected]
          link
          fedilink
          9•2 years ago

          I think every language needs a please operator, which acts to enforce human expectation of a statement:

          '1'  + '1'            ## evaluates to '11'
          please '1' + '1' ## evaluates to '2'
          
          • @[email protected]
            link
            fedilink
            4•2 years ago

            I kinda like that

      • @[email protected]
        link
        fedilink
        English
        5•2 years ago

        Yes. Yes it is.

Programmer [email protected]

[email protected]

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: [email protected]

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.
  • 103 users / day
  • 753 users / week
  • 2.97K users / month
  • 9.43K users / 6 months
  • 36.9K subscribers
  • 1.78K Posts
  • 37.9K Comments
  • Modlog
  • mods:
  • @[email protected]
  • @[email protected]
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org