infinitered / phoenix_base

Template project for Phoenix
MIT License
65 stars 16 forks source link

Add Maybe #14

Closed danielberkompas closed 8 years ago

danielberkompas commented 8 years ago

This makes it easy to do nil protection when you access nested structs. Read more about it over on ElixirForum: http://elixirforum.com/t/maybe-nil-protection-for-nested-structs/468/4

The module is so small that @jamonholmgren and I agreed that it doesn't need to be a separate library.