Saturday, August 21, 2010

Fluid dynamics: a code formatting experiment

Currently experimenting with fluent interface formatting. Specifically, how should you format it when you are switching context in the middle of a chain? (Should you even do that in the first place?)

   new StringBuilder()
         .replaceAll("([a-z]+)\\1", "$1")

No comments:

Post a Comment