Ok, a warning is enough then, in case you cannot remember of a reason to 
not emit the warning :-)

quarta-feira, 24 de Junho de 2020 às 16:16:12 UTC+1, Andrea Leopardi 
escreveu:
>
> It can't error out on compilation because it would be a breaking change. 
> However, personally I'm not against a compilation warning here, but there's 
> a chance we decided to not emit that for a reason that I can't recall right 
> now 😅
>
> Andrea
>
> On Wed, 24 Jun 2020 at 13:19, Mário Guimarães <[email protected] 
> <javascript:>> wrote:
>
>> Hello,
>>
>> I just observed the following cases
>>
>> iex(3)> if true do
>> ...(3)> else
>> ...(3)> :ok
>> ...(3)> end
>> nil
>> iex(4)> if false do
>> ...(4)> :ok
>> ...(4)> else
>> ...(4)> end
>> nil
>> iex(5)> if :anything do
>> ...(5)> else
>> ...(5)> end
>> nil
>> iex(6)>
>>
>> Should't they give a compilation error instead due to the empty blocks?
>>
>> Not only these cases are somewhat harder to read, but it seems that 
>> something is missing ...
>>
>> Thanks
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "elixir-lang-core" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/elixir-lang-core/81ee6358-695b-493d-aaf7-f310245943b6o%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/elixir-lang-core/81ee6358-695b-493d-aaf7-f310245943b6o%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" 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-core/0221800c-86c9-43b0-b52f-934ffb2c89cbo%40googlegroups.com.

Reply via email to