6 ms·
Not a fan. Not to say this isn't perhaps more readable to a layperson than the regex equivalent. However, I dislike these sorts of "syntactic sugar" libraries a
by throwaway274739 10y ago
Not a fan. Not to say this isn't perhaps more readable to a layperson than the regex equivalent. However, I dislike these sorts of "syntactic sugar" libraries as a rule due to the cognitive overhead they add to a project; every programmer working on this code now needs to know this API in addition to the regex equivalent, which, let's face it, they would've needed to know anyways.
Nonetheless, I commend you for putting a well documented/examples API out there. Cheers.
- jomamaxx 10y agoThis is not syntactic sugar - it's just a regular API. I think it would be useful if there was a very good reason to use it. Otherwise, learn regexing and it shouldn't be so bad.