• mohab@piefed.social
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    2 days ago

    I would assume this to be the case since you cannot un-utter a wish—once you say it, it is counted as a wish before it’s fulfilled.

    If the counter is decremented only after the wish is fulfilled, then this means you can go back on wishes because they don’t count until they’re fulfilled, which goes against the lore.

    • wheezy@lemmy.ml
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      2 days ago

      Well, not entirely. There are cases for which a person utters the wish and it is not counted. “I wish for a million wishes!”

      The standard is for the genie to explain the exceptions but not count that as a wish.

      Now, it could decrement the count after this check. But just decrementing the count before verification would be sloppy.

      But, then again, basic verification would also include checking that wishes_remaining <= MAX_WISHES.

      Which, I think is a pretty standard check for genie’s. Given that that constant has remained at 3 since their beta days and exceptions are thrown for violations of this rule.

    • Khanzarate@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 days ago

      Nah theres just no process for undoing your submission.

      It doesn’t matter when it’s decremented if you can’t interrupt the process, anyway.

      In a code sense we pause for input, feed it to the wishmaker function, and pause until the thread returns, then decrement.

      We could decrement first, also, but neither violates the rules.