• @alexdeathway
    link
    9
    edit-2
    4 months ago

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

    • @[email protected]
      link
      fedilink
      English
      84 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)