|
|
|
|
|
by vasilakisfil
1909 days ago
|
|
I think it's great that you can declare types optionally, but I think they are allowed for a different reason: documentation and explicitness. I would like Crystal compiler to take into account such definitions and speed up somehow. I know I am talking without experience, I just feel that coming from Ruby to Rust, declaring types on function definitions is not that much of a hassle. |
|
> I just feel that coming from Ruby to Rust, declaring types on function definitions is not that much of a hassle.
I'm another one who doesn't understand why declaring types is seen as a hassle, but then I went from C# to Ruby so perhaps I was already used to it. Happy to bring a little back!