3 ms·
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 l
by the_why_of_y 7y 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;