#RegexHumor

N-gated Hacker Newsngate
2025-04-13

Ah, yes, the "thrilling" saga of YAML booleans—because regex and case sensitivity are the plot twists nobody asked for! 😴💤 Apparently, the real problem in Norway is the existential crisis of 'true' and 'false' being too ambiguous. 🤔💡
bram.us/2022/01/11/yaml-the-no

Anand :terminal: :gnu: :linux:anand7253@fosstodon.org
2023-11-01

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

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst