Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

C's typedef syntax is retarded

Name: Anonymous 2011-01-28 12:32

The standard is to put the function name first and then the body. The analogy should be kept in other definitions similar to functions (if you are autistic enough that you need proof, see alias definitions in shells). So why is C's typedef backwards, first expecting the "body" and then the type? Tsk.

Name: Anonymous 2011-01-28 12:34

>>1
Because you touch yourself at night and typedef struct { /* my really long struct definition, with 7 factoryfactoryfactories, 23 singletons and 12 pointer to uintmax_t */ } type;

Name: Anonymous 2011-01-28 12:34

I #define my way to victory!

#define float int

Name: Anonymous 2011-01-28 12:35

#define private public

Name: Anonymous 2011-01-28 12:55

d 2>>2
It would easily work the other day around.

Name: Anonymous 2011-01-28 13:00

>>5
It would, but typedef type struct { /* my really long struct definition, with 7 factoryfactoryfactories, 23 singletons and 12 pointer to uintmax_t */ }; it's just an unreadable shit.

Name: Anonymous 2011-01-28 13:01

>>2
42

Name: Anonymous 2011-01-28 13:04

>>6
It's a matter of mentally blocking out a single word before or after a long definition. You must be autistic to be unable to do that.

Name: Anonymous 2011-01-28 13:34

>>8
fuck a goat nigger

Name: Anonymous 2011-01-28 13:34

>>7
42
* /* my really long struct definition, with 7 factoryfactoryfactories, 23 singletons and 12 pointers to uintmax_t and one char pointer */

>>8
Scrolling through the code, }; type is easier to see than typedef type struct union __attribute__ ((pure) (inline) (alwaysinline) (deprecated) (pack 0) (__gnu__faggot__enable__this__)) { /* ...; */ };

Name: Anonymous 2011-01-28 14:16

#define true rand()%2
#define false rand()%2
#define NULL rand()
#define null rand()
#define int void

Name: Anonymous 2011-01-28 14:26

>>9
Go back to /b/.

Name: Anonymous 2011-01-28 14:27

>>11
EXPERT NON DETERMINISTIC QUANTUM PROGRAMMER

Name: Anonymous 2011-01-28 14:43

>>11
I saw that too in PHP's source code.

Name: Anonymous 2011-01-28 15:21

PHP - Happy Programmers

Name: Anonymous 2011-01-28 15:34

So PHP recursively means "PHP Happy Programmers?"

Name: Anonymous 2011-01-28 15:45

PHP: Hates Programmers
PHP: Hates Performance
PHP: Hinders Productivity

Name: Anonymous 2011-01-28 15:49

PHP HTTP Protocol

Name: Anonymous 2011-01-28 16:37

>>17
Productivity Hinders PHP!

Name: Anonymous 2011-01-28 19:54

>>1
Probably because it was easier to parse: typedef is simply a storage-class specifier, like static or extern.

Name: Anonymous 2011-02-02 22:34

Name: Anonymous 2011-02-18 13:43

dubz

Don't change these.
Name: Email:
Entire Thread Thread List