DEV Community

Discussion on: Why I love Ruby: almost everything is a call

Collapse
 
betaziliani profile image
Beta Ziliani • Edited

The problem with defining a minimal set of keywords is that you can't do certain thinks. Take Crystal's one-liner if:

do_something if some_condition
Enter fullscreen mode Exit fullscreen mode

That can't be done if if is just a function. And the do everywhere isn't super idiomatic either. I like Crystal being on the side of the developer :-)