4 ms·
Why isn't this possible? if true: (something; then_another_something) if true: do something then_another_something end Then "do …
by judofyr 15y ago
Why isn't this possible?
if true: (something; then_another_something)
if true: do
something
then_another_something
end
Then "do … end" is the same as "begin … end" in Ruby. Also, you might be able to get rid of that colon too.
- josevalim 15y agoThat was a very simple example to explain which problem do/end is trying to solve. We also need to consider how your changes would fit with if/else, if/elsif/else and other macros like case/switch. That said, please join #elixir-lang on freenode and I would love to talk with you about your suggestions. Maybe we can figure out some improvements?