Then Support


(James Campbell) #1

I was wondering if this should be part of the stdlib

https://cocoapods.org/pods/Then

···

--
 Wizard
james@supmenow.com
+44 7523 279 698


(Erica Sadun) #2

This idea probably deserves more attention than it's going to get with this pitch for two reasons:

First, the Swift-Evolution list is heavily trafficked and you've given no context in either your subject line or your message about what "then" is and why it would be valuable to the Swift programming language. It is a Cocoapod that introduces "syntactic sugar for Swift initializers", that is extended initialization steps to support Cocoa set-up beyond the Apple-supplied inits. This is the same $0-delimited approach that has evolved spontaneously from a variety of developers.

Second, similar ideas have already been pitched and discussed on-list under the topics of method cascading, extended initialization, and so forth. You can search the Swift Evolution Archies on

Google (use site:https://lists.swift.org/pipermail/swift-evolution/ <http://lists.swift.org/pipermail/swift-evolution/> in your search, e.g. https://www.google.com/?gws_rd=ssl#q=cascad+site:https:%2F%2Flists.swift.org%2Fpipermail%2Fswift-evolution%2F <https://www.google.com/?gws_rd=ssl#q=cascad+site:https://lists.swift.org/pipermail/swift-evolution/>) or
gmane (e.g. http://search.gmane.org/?query=cascad&author=&group=gmane.comp.lang.swift.evolution&sort=relevance&DEFAULTOP=and&xP=Zcascad&xFILTERS=Gcomp.lang.swift.evolution---A <http://search.gmane.org/?query=cascad&author=&group=gmane.comp.lang.swift.evolution&sort=relevance&DEFAULTOP=and&xP=Zcascad&xFILTERS=Gcomp.lang.swift.evolution---A>)

A proposal on adding Dart-like cascades with Swifter-syntax stalled. Old proposal here: https://gist.github.com/erica/eb32feb22ba99629285a Bug report here: https://bugs.swift.org/browse/SR-160

The topic appears to be a popular one and well liked. I understand its best timeframe for discussion will be in about a year as it is unlikely to be addressed in Swift 3.0, although you should probably ask an Apple team member rather than a general bystander like myself.

Best regards, -- Erica

···

On Jan 4, 2016, at 6:58 AM, James Campbell via swift-evolution <swift-evolution@swift.org> wrote:

I was wondering if this should be part of the stdlib

https://cocoapods.org/pods/Then

--
 Wizard
james@supmenow.com <mailto:james@supmenow.com>
+44 7523 279 698
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution


(James Campbell) #3

Cheers Erica. I'll try this again but do it properly this time :wink:

···

On Mon, Jan 4, 2016 at 3:24 PM, Erica Sadun <erica@ericasadun.com> wrote:

This idea probably deserves more attention than it's going to get with
this pitch for two reasons:

First, the Swift-Evolution list is heavily trafficked and you've given no
context in either your subject line or your message about what "then" is
and why it would be valuable to the Swift programming language. It is a
Cocoapod that introduces "syntactic sugar for Swift initializers", that is
extended initialization steps to support Cocoa set-up beyond the
Apple-supplied inits. This is the same $0-delimited approach that has
evolved spontaneously from a variety of developers.

Second, similar ideas have already been pitched and discussed on-list
under the topics of method cascading, extended initialization, and so
forth. You can search the Swift Evolution Archies on

   - Google (use site:https://lists.swift.org/pipermail/swift-evolution/ in
   your search, e.g.
   https://www.google.com/?gws_rd=ssl#q=cascad+site:https:%2F%2Flists.swift.org%2Fpipermail%2Fswift-evolution%2F
   <https://www.google.com/?gws_rd=ssl#q=cascad+site:https://lists.swift.org/pipermail/swift-evolution/>
   ) or
   - gmane (e.g.
   http://search.gmane.org/?query=cascad&author=&group=gmane.comp.lang.swift.evolution&sort=relevance&DEFAULTOP=and&xP=Zcascad&xFILTERS=Gcomp.lang.swift.evolution---A
   )

A proposal on adding Dart-like cascades with Swifter-syntax stalled. Old
proposal here: https://gist.github.com/erica/eb32feb22ba99629285a Bug
report here: https://bugs.swift.org/browse/SR-160

The topic appears to be a popular one and well liked. I understand its
best timeframe for discussion will be in about a year as it is unlikely to
be addressed in Swift 3.0, although you should probably ask an Apple team
member rather than a general bystander like myself.

Best regards, -- Erica

On Jan 4, 2016, at 6:58 AM, James Campbell via swift-evolution < > swift-evolution@swift.org> wrote:

I was wondering if this should be part of the stdlib

https://cocoapods.org/pods/Then

--
 Wizard
james@supmenow.com
+44 7523 279 698
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

--
 Wizard
james@supmenow.com
+44 7523 279 698