Re: [swift-users] [swift-dev] Make offset index available for String

2017-12-18 Thread Cao, Jiannan via swift-users
OK, but how do you use IndexingIterator to get element and not change itself? In C++, the iterator is more like index. because it could be used to get the element, and not change itself, and it can be offset back and forth not only by one. *it *(it+5) *(it-5) but in Swift

[swift-users] private vs. fileprivate on global declaration in Swift3?

2016-09-28 Thread Cao Jiannan via swift-users
Should I use private or fileprivate to declare global variables/consts in Swift 3? e.g. fileprivate let a = 1 fileprivate class SomeClass { fileprivate b = 0 } or private let a = 1 private class SomeClass { fileprivate b = 0 } Thanks! If they are identity, then I think the Swift team

[swift-users] private vs. fileprivate on global declaration in Swift3?

2016-09-28 Thread Cao Jiannan via swift-users
Should I use private or fileprivate to declare global variables/consts in Swift 3? e.g. fileprivate let a = 1 fileprivate class SomeClass { fileprivate b = 0 } or private let a = 1 private class SomeClass { private b = 0 } Thanks! If they are identity, then I think the Swift team shou

[swift-users] private vs. fileprivate on global declaration in Swift3?

2016-09-28 Thread Cao Jiannan via swift-users
Should I use private or fileprivate to declare global variables/consts in Swift 3? e.g. fileprivate let a = 1 fileprivate class SomeClass { fileprivate b = 0 } Or private let a = 1 private class someClass { fileprivate b = 0 } Thanks! I think the Swift team should tell us which is bett

[swift-users] How to package resource files (like *.jpg etc.) with Swift Package Manager?

2016-05-06 Thread Cao Jiannan via swift-users
Hi, All How to package resource files (like *.jpg etc.) with Swift Package Manager? Thanks! Jianann ___ swift-users mailing list swift-users@swift.org https://lists.swift.org/mailman/listinfo/swift-users