puts(Array) and p(Array)

Crystal took inspiration from Ruby, but that does not mean it has to mirror Ruby, or that it has to take decisions based on what would be more familiar for a Ruby programmer. Division of integers returns a float? Fine with me, it’s the authors’ call.

In this case, I am also fine, see no compelling reason to change it. Even more, printing each item in its own line surprised to me the first time I saw it in Ruby, and still seems a bit arbitrary to me.

3 Likes