Well, for example in Python we can run another program from interpreter by
import subprocess
result = subprocess.run('ruby script.rb').stdout
My question is next:
Can we do something from Swift file at runtime or maybe from terminal via REPL
And can you send me resource when I can read
Hello.
For example we have
Class A {}
Struct B {}
And code 'let b = B()' will do much faster than code 'let a = A()'
And therefore code 'let d = Date()' is fast, because Date is struct?
And I can use it in huge cycles fearlessly?
--
Alexandr
Please explain, what is conditional conformances with another words?
> Среда, 6 декабря 2017, 6:32 +03:00 от Matt Whiteside via swift-users
> :
>
> Hello Swift Users,
>
> [This is a resend with smaller attachment] Has anyone had luck passing the
> new
Hello.
I start learn Swift Package Manager.
Is exist a simple way to generate Xcode project with file Package.swift (which
download all code) for iOS template in Xcode?
Something about
$ swift package init --ios template =))
--
Alex Sedikh___
Hello
For me more good use nested function instead of closure. How in this case right
way to define capture list?
//With Closure
class Sender {
var color = "Orange"
var writer = Receiver ()
func something() {
writer . callback = { [weak self ]
n. Car is a
>type of Position, but they are not interchangeable. See below:
>
>> On May 26, 2017, at 00:33, Седых Александр via swift-users <
>> swift-users@swift.org > wrote:
>>
>> protocol Position {
>> var x: Double { getset }
>> }
>>
>>
Hello.
I stumbled on ambiguous behaviour of compiler. Is not allowed explicitly
indicate type in Generic typealias.
struct Сarriage {
let g = [ T ]()
}
struct Coma {
typealias R = Сarriage < T >
let m = R ()
let d = R < String >() \\ error: cannot specialize
Hello. Please explain me, why we can't make Nested Types in Generic Types?
--
Седых Александр___
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users
Hello everyone!
Please, tell, where I can read about "Self" requirement in protocols? Because
in Book no words about it.
Thanks
--
Седых Александр
___
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users
Hello.
I have a simple expression with Any and is not work. Why?
var dictarray: [[ String : Any ]] = [[ "kek" : nil ]]
\\ Nil is not compatible with expected dictionary value type 'Any'
--
And in other hand this is work
var dictarray: [[ String : Any ]] = [[:]] \\ [[:]], dictarray
Assume we have this code:
Immediately two Timer's closures captured two copy of initial values of
instance Test, with internal num values is 0.
//: Playground - noun: a place where people can play
import UIKit
var str = "Hello, playground"
struct Test {
var num = 0
mutating
This code work:
let one: Int ? = 5
let two = 5
let result = one == two
print ( result )
//print true
Why we can access to Optional value without unwrap within comparison operations?
--
Седых Александр___
swift-users mailing list
12 matches
Mail list logo