typelift / Aquifer

Functional streaming abstractions in Swift
72 stars 6 forks source link

~> Conflicts with the Swift STL #13

Closed CodaFi closed 9 years ago

CodaFi commented 9 years ago

Ah, the totally foreseeable consequences of keeping every operator, no matter how private, at global scope.

pthariensflame commented 9 years ago

:(

CodaFi commented 9 years ago

I say keep it around for now, but the operator declaration has got to go... I'm not sure how this will affect the associativity of the operator.

pthariensflame commented 9 years ago

Very badly: http://swiftdoc.org/swift-2/operator/tildegt/

pthariensflame commented 9 years ago

I say we rename it and its family. Perhaps ~|>, <|~, |>~, and ~<| look decent? Maybe? :/

CodaFi commented 9 years ago

Could always double head

~>> / <<~

or double tail

~~> / <~~

pthariensflame commented 9 years ago

Ooh, the double tail variety doesn't look half bad to me!

pthariensflame commented 9 years ago

@CodaFi If you agree with ~~> / <~~ and >~~ / ~~<, then I can put together a pull request implementing that change.

CodaFi commented 9 years ago

:+1:

I was trying them in a playground earlier and they had some deleterious effects on my machine with beta 6. Hopefully you have more luck with the PR.