digitalocean / captainslog

A Syslog Protocol Parser
Mozilla Public License 2.0
136 stars 19 forks source link

Problem: Did not like new API stye #39

Closed taotetek closed 8 years ago

taotetek commented 8 years ago

While the builder pattern constructors read nicely, they allowed you to create code that would compile fine and then fail at runtime. After experimenting with this, I decided that boring and slightly ugly code that is safer is better than fancier code that is less safe.