• 4wd@programming.dev
    link
    fedilink
    arrow-up
    20
    arrow-down
    2
    ·
    1 month ago

    In Elixir, we mark statuses by using a question mark at the end of the variable name. Something like this:

    authorized? = user |> get_something() |> ensure_authorized?()
    

    I like this better than the is_ prefix