News for hackers. Stuff that matters.
Re:Java Verbal Expressions by stickfigure on Thursday November 26, 2020 @12:45AM (#25217222)
Furthermore, with immutable objects there's no need to to have any public constructors at all.

`REGEX.startOfLine().then("http")...`

Since the start object is immutable, there's no reason to create new ones. Here's an example of this pattern applied to HTTP (my project):

https://github.com/stickfigure/hattery

Avoiding repeated Pattern.compile() is a good point though.

There are no comments on this comment yet.