Follow-up question; there's debate in Ruby as to whether methods ending in
`?` are supposed to return actual booleans or just "truthy" and "falsy"
values.

Is there a similar debate in Elixir or has it been more strictly defined?

On 21 August 2016 at 19:08, Peter Hamilton <[email protected]> wrote:

> It has no meaning syntactically. It's just part of the function name. It
> is however a convention (especially common in Ruby) meaning "this function
> returns a boolean value".
>
> On Sun, Aug 21, 2016, 10:37 AM António Ramos <[email protected]> wrote:
>
>> Hello simple question for sure
>>
>> what is the meaning of the ? in
>>
>> def  aaa?()
>>
>> regards
>> António
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "elixir-lang-talk" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/elixir-lang-talk/CAEM0BxPu0w0pCpuNXzktOUUwpymxH
>> 7cyTTu3EgUePtKOX86vJA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/elixir-lang-talk/CAEM0BxPu0w0pCpuNXzktOUUwpymxH7cyTTu3EgUePtKOX86vJA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "elixir-lang-talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/elixir-lang-talk/CAOMhEnyyRKa-mi7roBci-MvcNiFGEwL4mzPOdTo96%3D0%3DK-
> h0eQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/elixir-lang-talk/CAOMhEnyyRKa-mi7roBci-MvcNiFGEwL4mzPOdTo96%3D0%3DK-h0eQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-talk/CAD2T2ciW2BcufRhczzkxyoe%3DaymL%2Bnb2saB5xMAGJOPCiCEq0g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to