devxoul / Then

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

Added Operator syntax #8

Closed basvankuijck closed 8 years ago

basvankuijck commented 8 years ago

I had something similar in my codebase (only I use the with keyword). And included my (small) operator snippet to be used along then

devxoul commented 8 years ago

@basvankuijck, thank you for your work!

But I cannot merge this PR right away. I'm having a consideration about using operators. Why I chose the name 'then' was to avoid name conflicts with other frameworks. There are many kind of methods named with() and operators using =>.

Operators are charming, but should be used very carefully.

devxoul commented 8 years ago

Or we can use a compiler flag to disable Then's operators.

Pearapps commented 8 years ago

:+1: to this PR

Pearapps commented 8 years ago

There are many kind of methods named with() and operators using =>

Are the type signatures the same though?

efremidze commented 8 years ago

:+1: