Some Swift libraries, such as ReactiveSwift and RxSugar, implement the <~ operator to model data binding. I've had internal discussions numerous times about the reversal operator ~> when data should flow to the right hand variable. Strangely, I discovered that we can't define this operator because it is already defined in the standard library.
I noticed that the infix operator ~> is defined in the standard library, but with a caveat:
// Workaround for <rdar://problem/14011860> SubTLF: Default // implementations in protocols. Library authors should ensure // that this operator never needs to be seen by end-users. See // test/Prototypes/GenericDispatch.swift for a fully documented // example of how this operator is used, and how its use can be hidden // from users. infix operator ~>
Not having access to rdar://problem/14011860, I'm not sure what the specifics are but the comment references the file GenericDispatch.swift. Looking at this file, it appears to be a sample swift source file that has little value. There's a comment at the top of the file that states "This file will ensure that the capability doesn't regress and give us a prototype to which we can refer when building the standard library.", but isn't this the intention of the swift-source-compat-suite?
Is there any hope for this operator to be removed in the stdlib so library authors can expose this in their API?