David Blass @ssalbdivad.dev · Jun 23

As far as why? For the same reason you'd want anything to be typed. It makes the intent of the regex clearer and gives you narrowed string types for stricter checks passing specific string values around.

3 likes 0 replies

?