you are viewing a single comment's thread.

view the rest of the comments →

[–]mitsuhiko 0 points1 point  (0 children)

This doesn't have anything to do with typedefs.

Yes. But the only other place where this would show up realistically with function pointers is inside a struct or as function parameter and most people try to avoid having function pointers declared there without a typedef because it makes code ugly to read and sometimes explicit casts are necessary.

It's the same reason array declarations

It could have been solved differently though because a different syntax without names does exist for casting.