open-swift / c7 Goto Github PK
View Code? Open in Web Editor NEWCore standards for Swift
License: MIT License
Core standards for Swift
License: MIT License
Swift updated the indexing model: https://github.com/apple/swift-evolution/blob/master/proposals/0065-collections-move-indices.md
The types in C7 need to be updated to respect that.
SPM supports multiple targets (modules). Maybe having those inside the C7 package would be a good a idea. We could have the C7
module which would be an umbrella module which @_exported import
all modules inside C7
package. This would give us module namespacing. So we could have Stream.Error
instead of C7.StreamError
, for example.
This approach could be in all OpenSwift packages. I just created the issue here for specific examples.
Got error on build
Cloning https://github.com/VeniceX/TCP.git
Resolved version: 0.4.2
Cloning https://github.com/VeniceX/IP.git
Resolved version: 0.4.3
Cloning https://github.com/VeniceX/Venice.git
Resolved version: 0.4.2
Cloning https://github.com/VeniceX/CLibvenice.git
Resolved version: 0.4.2
Cloning https://github.com/open-swift/C7.git
Resolved version: 0.4.2
Cloning https://github.com/Zewo/OS.git
Resolved version: 0.4.2
Cloning https://github.com/Zewo/Data.git
Resolved version: 0.4.9
Cloning https://github.com/SwiftX/C7.git
/usr/bin/git clone --recursive --depth 10 https://github.com/SwiftX/C7.git /Users/DenisK/Work/Swift/Zewo-dev-new/Redis/Packages/C7
fatal: destination path '/Users/DenisK/Work/Swift/Zewo-dev-new/Redis/Packages/C7' already exists and is not an empty directory.
error: Failed to clone https://github.com/SwiftX/C7.git to /Users/DenisK/Work/Swift/Zewo-dev-new/Redis/Packages/C7
/Users/honzadvorsky/Documents/vapor/Packages/C7-0.5.0/Sources/Data.swift:193:44: warning: @noescape is now an attribute on a parameter type, instead of on the parameter itself
public func withUnsafeBufferPointer<R>(@noescape body: (UnsafeBufferPointer<Byte>) throws -> R) rethrows -> R {
^~~~~~~~~
@noescape
/Users/honzadvorsky/Documents/vapor/Packages/C7-0.5.0/Sources/Data.swift:193:44: warning: @noescape is now an attribute on a parameter type, instead of on the parameter itself
public func withUnsafeBufferPointer<R>(@noescape body: (UnsafeBufferPointer<Byte>) throws -> R) rethrows -> R {
^~~~~~~~~
@noescape
/Users/honzadvorsky/Documents/vapor/Packages/C7-0.5.0/Sources/Data.swift:193:44: warning: @noescape is now an attribute on a parameter type, instead of on the parameter itself
public func withUnsafeBufferPointer<R>(@noescape body: (UnsafeBufferPointer<Byte>) throws -> R) rethrows -> R {
^~~~~~~~~
@noescape
/Users/honzadvorsky/Documents/vapor/Packages/C7-0.5.0/Sources/Data.swift:197:60: warning: @noescape is now an attribute on a parameter type, instead of on the parameter itself
public mutating func withUnsafeMutableBufferPointer<R>(@noescape body: (inout UnsafeMutableBufferPointer<Byte>) throws -> R) rethrows -> R {
^~~~~~~~~
@noescape
/Users/honzadvorsky/Documents/vapor/Packages/C7-0.5.0/Sources/Data.swift:197:60: warning: @noescape is now an attribute on a parameter type, instead of on the parameter itself
public mutating func withUnsafeMutableBufferPointer<R>(@noescape body: (inout UnsafeMutableBufferPointer<Byte>) throws -> R) rethrows -> R {
^~~~~~~~~
@noescape
/Users/honzadvorsky/Documents/vapor/Packages/C7-0.5.0/Sources/Data.swift:197:60: warning: @noescape is now an attribute on a parameter type, instead of on the parameter itself
public mutating func withUnsafeMutableBufferPointer<R>(@noescape body: (inout UnsafeMutableBufferPointer<Byte>) throws -> R) rethrows -> R {
^~~~~~~~~
@noescape
Compilation still finishes, but it'd be nice to have a 04-25 clean version ๐
Swift version 3.0-dev (LLVM 752e1430fc, Clang 3987718dae, Swift 36739f7b57)
XXX/Packages/C7-0.2.0/Sources/AsyncStream.swift:4:18: warning: extraneous duplicate parameter name; 'length' already has an argument label
func receive(length length: Int, result: (Void throws -> Data) -> Void)
^~~~~~~
XXX/Packages/C7-0.2.0/Sources/AsyncStream.swift:5:15: warning: extraneous duplicate parameter name; 'data' already has an argument label
func send(data data: Data, result: (Void throws -> Void) -> Void)
^~~~~
XXX/Packages/C7-0.2.0/Sources/Data.swift:34:26: error: method 'replaceSubrange(subRange:with:)' has different argument names from those required by protocol 'RangeReplaceableCollection' ('replaceSubrange(_:with:)')
public mutating func replaceSubrange<C : Collection where C.Iterator.Element == Byte>(subRange: Range<Int>, with newElements: C) {
^
_
Swift.RangeReplaceableCollection:16:26: note: requirement 'replaceSubrange(_:with:)' declared here
public mutating func replaceSubrange<C : Collection where C.Iterator.Element == Iterator.Element>(_ subRange: Range<Self.Index>, with newElements: C)
^
XXX/Packages/C7-0.2.0/Sources/Data.swift:34:26: error: method 'replaceSubrange(subRange:with:)' has different argument names from those required by protocol 'RangeReplaceableCollection' ('replaceSubrange(_:with:)')
public mutating func replaceSubrange<C : Collection where C.Iterator.Element == Byte>(subRange: Range<Int>, with newElements: C) {
^
_
Swift.RangeReplaceableCollection:16:26: note: requirement 'replaceSubrange(_:with:)' declared here
public mutating func replaceSubrange<C : Collection where C.Iterator.Element == Iterator.Element>(_ subRange: Range<Self.Index>, with newElements: C)
^
<unknown>:0: error: build had 1 command failures
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.