Better HN
topnewbestaskshowjobs
Log inSign up

OreganoTrail

2 karma · joined May 23, 2024 (2y ago) · 4 submissions

Submissions

comment 2w ago · link · parent

> Aristotle can prove that your code has no undefined behavior ... even inside unsafe blocks.

That's crazy, I haven't seen any other system that really tries to do that.

comment 2y ago · link · parent

It says right there: "The regular expression does not cope with comments in email addresses. ... The Perl module pre-processes email addresses to remove comments before applying the mail regular expression."

comment 2y ago · link · parent

If I understand this correctly ... valid emails aren't a regular language, but there is a regex for them because regexes can match nested parentheses, but no one has ever made written down or generated this regex because it's too much work. So everyone uses good-enough regexes instead. (Reasonable.)

4.

There is a regex for valid emails, but no one has written it(twitter.com ↗)

2 points · by OreganoTrail · 2y ago · 3 comments