devxoul / Then

✨ Super sweet syntactic sugar for Swift initializers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@noescape

onmyway133 opened this issue Β· comments

commented

Hi, I just make my Configurable and realize you're 1 step before me πŸ˜„

I see that this pattern is now widely adopted in many projects, like Dip, ... for the compensation of Builder pattern. Like Dip, I have Initable which works on init as well, good for basic usage

One thing you can improve is to leverage @noescape http://nshint.io/blog/2015/10/23/noescape-attribute/

@onmyway133, thank you for pointing it out!
There is already a PR for making closure non-escapable. (#1)
This will be shipped in next release.