mikebridge / Liquid.NET

.Net Port of the Liquid template language
MIT License
61 stars 15 forks source link

Remove ability to wrap null strings in LiquidString #39

Closed mikebridge closed 9 years ago

mikebridge commented 9 years ago

Now Strings must be created via the factory method LiquidString.Create(String str). This enforces the LiquidString.StringValue to be non-null. The factory method will return null if the string value is null.

This also allows a programmer to take advantage of type-inferencing on methods that accept an Option, because passing null will automatically be promoted to Option.