This is an adaptation of an internal blog post I made for Gravity engineers. To preface, Gravity likes to use 2 very predictable patterns throughout its Scala codebase, which is very important for a TIMTOWTDI language like Scala. The for-comprehension: it expresses so much of Gravity’s business logic, so it is valuable to see its familiar syntax over and over. ValidationNEL: it captures success an
![Accumulating More Than One Failure In A ValidationNEL - John Kurkowski](https://cdn-ak-scissors.b.st-hatena.com/image/square/4afa84efac5092f5270052648edfb33727bff8be/height=288;version=1;width=512/https%3A%2F%2Fjohnkurkowski.com%2Fimages%2Favatar%402X.jpeg)