devxoul / Then

✨ Super sweet syntactic sugar for Swift initializers
MIT License
4.16k stars 290 forks source link

Question: Why use `then` instead of `with`? #77

Closed CodeStage closed 4 years ago

CodeStage commented 4 years ago

What am I missing? Why can't I use with for everything? I have not run into a situation where with is not working... Why have both then and with?

devxoul commented 4 years ago

Theoretically you can use with in all cases. with() API is added after then() API to support value types and I just didn't remove the existing then() API.

CodeStage commented 4 years ago

👌