I'm still designing my language.

Why not just introduce RegExps into pointers?

int *a; /* nonnull pointer to single int */
int *?a; /* can-be-null pointer to single int */
int +a; /* nonnull pointer to array begining */
int +?a;

Isn't using the nonnull __attribute__ a bit long?

Now yes, I don't see the point of + and +?, but there is the 'array of unspecified length' syntax:
int *argv[];
so why not?

#programming #languageprogramming #c #pointers #regex #regexHumor #humor #becauseWhyNot

@rmgr Nice. I'm also programming my language. It has classical in-order operations, so my stack is a bit more hidden from the user (ok, actually programmer), but still I love my stack. It solves all my problems and is both easier too use and more efficient than recursivity. Recursive solutions use the machine code stack which I can't control as much as the structure I've designed myself for this perticular purpose.
Good luck! Have fun!
#programming #software #languageprogramming #diy #doitmyself