5 ms·
It definitely comes from both. Objective C Block prototypes? C typedefs? blech.
by gte910h 14y ago
It definitely comes from both. Objective C Block prototypes? C typedefs? blech.
- chc 14y agoUnless I misunderstand you, block type syntax is almost identical to function pointers. In both cases, you should generally typedef them and then your code is once again free from ugliness.
- gte910h 14y agoFunction pointers are also blech looking.
- jfb 14y agoHaving to typedef at all is a sign of deep, unfixable badness.
- Jach 14y agoI'm not sure how you arrived at that belief, unless perhaps you think everything should be (visibly to the programmer) type-free? Care to elaborate? I think it would be nice if C and C++ supported more type semantics than `typedef` and `class`, say something as powerful as Haskell's system...
- jfb 14y agoIt's the fundamental unfixable crappiness of C declaration syntax that makes 'typedef' necessary.
- swift 14y agoI am unable to reply to my sibling poster, but I believe what you're saying is that having a hideous and unreadable syntax that forces the use of typedefs just so others can understand what you have written is a sign of deep, unfixable badness. And I agree.