|
|
|
|
|
by stickfigure
2200 days ago
|
|
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. |
|