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
