• alexdeathway
    link
    fedilink
    arrow-up
    9
    ·
    edit-2
    6 months ago

    does ‘?’ have type definition in elixir or this is generally agreed design pattern?

    • Faresh@lemmy.ml
      link
      fedilink
      English
      arrow-up
      8
      ·
      6 months ago

      If it’s like Lisp, then ? is just part of the symbol and doesn’t have any special syntatic meaning. In different Lisps it’s also convention to end predicate names with a ? or with P (p for predicate)