• Ziglin (it/they)
    link
    fedilink
    English
    14 months ago

    I understand that, it makes sense. But why does it not throw an error? The parameter is missing after all.

      • Ziglin (it/they)
        link
        fedilink
        English
        14 months ago

        That makes a lot more sense, thanks I did see in the syntax highlighting that it was a keyword but forgot that none of them took parameters.

    • @spooky2092@lemmy.blahaj.zone
      link
      fedilink
      English
      04 months ago

      No it’s not, “” (a null/empty string) is the parameter. Not every function needs a parameter to be valid, and negation is one of them. Negating nothing is something, so “not()” = “not(null)” = “not(false)” = “true”