Comment by the_why_of_y
7 years ago
One aspect of this that you might be overlooking is that the syntax for function pointers has to follow the syntax of function declarations.
Why should a new language inflict this horror on its users:
let i32 (*foobar)(i32, i32) = add;
When it can do this instead:
let foobar: fn(i32, i32) -> i32 = add;
No comments yet
Contribute on Hacker News ↗