alexander-bauer / distru

Distributed search for Hyperboria, powered by Go
13 stars 3 forks source link

Prewritten regexes should use regex.MustCompile() #42

Closed alexander-bauer closed 12 years ago

alexander-bauer commented 12 years ago

Prewritten regexes, which are not subject to change or any sort of variability, should be made using regex.MustCompile(). This will cause a runtime panic if they fail to compile, which will never happen if they are not subject to change.