Re: [swift-users] Removed discussions in doc for Swift 4. Why?

2017-06-12 Thread Jens Persson via swift-users
"Removed discussion of variable function arguments and the special syntax
for curried functions."

On Mon, Jun 12, 2017 at 10:02 PM, tuuranton--- via swift-users <
swift-users@swift.org> wrote:

> > Austin Zheng wrote:
>
> > I'm not aware, though, of any proposal in the pipeline to remove variadic
> arguments, so it's not clear why the book should have removed discussion
> about them.
>
>
> Yes, this is a real mystery.
>
>
>
>
> > On Jun 12, 2017, at 12:37 PM, Austin Zheng via swift-users  at swift.org> wrote:
>
> > ...
>
> ___
> swift-users mailing list
> swift-users@swift.org
> https://lists.swift.org/mailman/listinfo/swift-users
>
>
___
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users


Re: [swift-users] Removed discussions in doc for Swift 4. Why?

2017-06-12 Thread Jens Persson via swift-users
That is, "variable" not "variadic" function arguments.
func foo(var a: Int) { ... }
is no longer valid, the parameter may not have the var specifier anymore.

On Mon, Jun 12, 2017 at 10:24 PM, Jens Persson  wrote:

> "Removed discussion of variable function arguments and the special syntax
> for curried functions."
>
> On Mon, Jun 12, 2017 at 10:02 PM, tuuranton--- via swift-users <
> swift-users@swift.org> wrote:
>
>> > Austin Zheng wrote:
>>
>> > I'm not aware, though, of any proposal in the pipeline to remove
>> variadic
>> arguments, so it's not clear why the book should have removed discussion
>> about them.
>>
>>
>> Yes, this is a real mystery.
>>
>>
>>
>>
>> > On Jun 12, 2017, at 12:37 PM, Austin Zheng via swift-users > at swift.org> wrote:
>>
>> > ...
>>
>> ___
>> swift-users mailing list
>> swift-users@swift.org
>> https://lists.swift.org/mailman/listinfo/swift-users
>>
>>
>
___
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users


Re: [swift-users] Removed discussions in doc for Swift 4. Why?

2017-06-12 Thread tuuranton--- via swift-users
> Austin Zheng wrote:
> I'm not aware, though, of any proposal in the pipeline to remove 
> variadicarguments, so it's not clear why the book should have removed 
> discussionabout them.

Yes, this is a real mystery.



> On Jun 12, 2017, at 12:37 PM, Austin Zheng via swift-users  swift.org> wrote:
> ...___
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users


Re: [swift-users] Removed discussions in doc for Swift 4. Why?

2017-06-12 Thread Erica Sadun via swift-users
`var` arguments were also removed

-- E


> On Jun 12, 2017, at 12:37 PM, Austin Zheng via swift-users 
>  wrote:
> 
> The currying syntax was removed in Swift 3 (see 
> https://github.com/apple/swift-evolution/blob/master/proposals/0002-remove-currying.md
>  
> ).
>  I'm not aware, though, of any proposal in the pipeline to remove variadic 
> arguments, so it's not clear why the book should have removed discussion 
> about them.
> 
> Austin
> 
> On Mon, Jun 12, 2017 at 11:02 AM, tuuranton--- via swift-users 
> > wrote:
> From
> 
> 
> https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/RevisionHistory.html#//apple_ref/doc/uid/TP40014097-CH40-ID459
>  
> 
> 
> 
> "Removed discussion of variable function arguments and the special syntax for 
> curried functions."
> 
> 
> Why?
> 
> 
> I tried variable function arguments and they seem to work fine in Xcode 9. 
> Didn't try currying yet, however.
> 
> 
> Are these features being phased out?
> 
> 
> 
> ___
> swift-users mailing list
> swift-users@swift.org 
> https://lists.swift.org/mailman/listinfo/swift-users 
> 
> 
> 
> ___
> swift-users mailing list
> swift-users@swift.org
> https://lists.swift.org/mailman/listinfo/swift-users

___
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users


Re: [swift-users] There is a way to see pending features or discussions in complexity order?

2017-06-12 Thread Mariano Cornejo Herrera via swift-users
Cool, thanks! That's what I talking about

Greetings

On Mon, Jun 12, 2017 at 1:35 PM Austin Zheng  wrote:

> Hi Mariano,
>
> If you want to contribute, you should create an account at the bug tracker
> at https://bugs.swift.org/. You can then look for bugs marked with the
> `StarterBug` tag, which are simple tasks or enhancements that are
> explicitly called out as appropriate for new contributors.
>
> If you just want to look through all the proposals and their current
> status, you can visit https://apple.github.io/swift-evolution/. Note that
> proposals are arranged in chronological order.
>
> Best,
> Austin
>
>
> On Mon, Jun 12, 2017 at 11:17 AM, Mariano Cornejo Herrera via swift-users
>  wrote:
>
>> Of course but I'm new in language development so I want to start from
>> less complex stuff, learn and then help with more complex stuff, that's why
>> I want to know if there is a place where all the pending features are
>> ordered according to the complexity
>>
>> On Mon, Jun 12, 2017 at 12:08 PM Quinn "The Eskimo!" via swift-users <
>> swift-users@swift.org> wrote:
>>
>>>
>>> On 11 Jun 2017, at 09:02, Mariano Cornejo Herrera via swift-users <
>>> swift-users@swift.org> wrote:
>>>
>>> > There is a way to see pending features or discussions in complexity
>>> order?
>>>
>>> I’m not sure what you’re asking for here.  Are you looking for some way
>>> to contribute to the Swift open source efforts?
>>>
>>> Share and Enjoy
>>> --
>>> Quinn "The Eskimo!"
>>> Apple Developer Relations, Developer Technical Support, Core OS/Hardware
>>>
>>>
>>> ___
>>> swift-users mailing list
>>> swift-users@swift.org
>>> https://lists.swift.org/mailman/listinfo/swift-users
>>>
>>
>> ___
>> swift-users mailing list
>> swift-users@swift.org
>> https://lists.swift.org/mailman/listinfo/swift-users
>>
>>
>
___
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users


Re: [swift-users] Removed discussions in doc for Swift 4. Why?

2017-06-12 Thread Austin Zheng via swift-users
The currying syntax was removed in Swift 3 (see
https://github.com/apple/swift-evolution/blob/master/proposals/0002-remove-currying.md).
I'm not aware, though, of any proposal in the pipeline to remove variadic
arguments, so it's not clear why the book should have removed discussion
about them.

Austin

On Mon, Jun 12, 2017 at 11:02 AM, tuuranton--- via swift-users <
swift-users@swift.org> wrote:

> From
>
>
> https://developer.apple.com/library/content/documentation/
> Swift/Conceptual/Swift_Programming_Language/RevisionHistory.html#//apple_
> ref/doc/uid/TP40014097-CH40-ID459
>
>
> "Removed discussion of variable function arguments and the special syntax
> for curried functions."
>
>
> Why?
>
>
> I tried variable function arguments and they seem to work fine in Xcode 9.
> Didn't try currying yet, however.
>
>
> Are these features being phased out?
>
>
>
> ___
> swift-users mailing list
> swift-users@swift.org
> https://lists.swift.org/mailman/listinfo/swift-users
>
>
___
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users


Re: [swift-users] There is a way to see pending features or discussions in complexity order?

2017-06-12 Thread Austin Zheng via swift-users
Hi Mariano,

If you want to contribute, you should create an account at the bug tracker
at https://bugs.swift.org/. You can then look for bugs marked with the
`StarterBug` tag, which are simple tasks or enhancements that are
explicitly called out as appropriate for new contributors.

If you just want to look through all the proposals and their current
status, you can visit https://apple.github.io/swift-evolution/. Note that
proposals are arranged in chronological order.

Best,
Austin


On Mon, Jun 12, 2017 at 11:17 AM, Mariano Cornejo Herrera via swift-users <
swift-users@swift.org> wrote:

> Of course but I'm new in language development so I want to start from less
> complex stuff, learn and then help with more complex stuff, that's why I
> want to know if there is a place where all the pending features are ordered
> according to the complexity
>
> On Mon, Jun 12, 2017 at 12:08 PM Quinn "The Eskimo!" via swift-users <
> swift-users@swift.org> wrote:
>
>>
>> On 11 Jun 2017, at 09:02, Mariano Cornejo Herrera via swift-users <
>> swift-users@swift.org> wrote:
>>
>> > There is a way to see pending features or discussions in complexity
>> order?
>>
>> I’m not sure what you’re asking for here.  Are you looking for some way
>> to contribute to the Swift open source efforts?
>>
>> Share and Enjoy
>> --
>> Quinn "The Eskimo!"
>> Apple Developer Relations, Developer Technical Support, Core OS/Hardware
>>
>>
>> ___
>> swift-users mailing list
>> swift-users@swift.org
>> https://lists.swift.org/mailman/listinfo/swift-users
>>
>
> ___
> swift-users mailing list
> swift-users@swift.org
> https://lists.swift.org/mailman/listinfo/swift-users
>
>
___
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users


Re: [swift-users] There is a way to see pending features or discussions in complexity order?

2017-06-12 Thread Mariano Cornejo Herrera via swift-users
Of course but I'm new in language development so I want to start from less
complex stuff, learn and then help with more complex stuff, that's why I
want to know if there is a place where all the pending features are ordered
according to the complexity

On Mon, Jun 12, 2017 at 12:08 PM Quinn "The Eskimo!" via swift-users <
swift-users@swift.org> wrote:

>
> On 11 Jun 2017, at 09:02, Mariano Cornejo Herrera via swift-users <
> swift-users@swift.org> wrote:
>
> > There is a way to see pending features or discussions in complexity
> order?
>
> I’m not sure what you’re asking for here.  Are you looking for some way to
> contribute to the Swift open source efforts?
>
> Share and Enjoy
> --
> Quinn "The Eskimo!"
> Apple Developer Relations, Developer Technical Support, Core OS/Hardware
>
>
> ___
> swift-users mailing list
> swift-users@swift.org
> https://lists.swift.org/mailman/listinfo/swift-users
>
___
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users


Re: [swift-users] There is a way to see pending features or discussions in complexity order?

2017-06-12 Thread Quinn "The Eskimo!" via swift-users

On 11 Jun 2017, at 09:02, Mariano Cornejo Herrera via swift-users 
 wrote:

> There is a way to see pending features or discussions in complexity order?

I’m not sure what you’re asking for here.  Are you looking for some way to 
contribute to the Swift open source efforts?

Share and Enjoy
--
Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware


___
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users


[swift-users] How to write a test against fixture resources from generated xcodeproj test bundle?

2017-06-12 Thread Toshihiro Suzuki via swift-users
Hi Swift Community,
I'm Toshihiro Suzuki and have a question about Swift Package Manager.
I'm trying out with new Xcode9-beta.

When I generate a new xcodeproj like this, `Resources` directory is
imported as a folder reference in xcodeproj.
```
$ swift -version
Apple Swift version 4.0 (swiftlang-900.0.43 clang-900.0.22.8)
Target: x86_64-apple-macosx10.9
$ swift package init --type library
$ mkdir -p Resources/Fixtures/
$ touch Resources/Fixtures/test.txt
$ swift package generate-xcodeproj
```

When I open the xcodeproj and hit Cmd+U, I want to access test.txt with
code like this.
```
let path = Bundle(for: Swift4sampleTests.self).path(forResource:
"test.txt", ofType: nil)!
let data = Data(contentsOf: URL(string: path)!)
```

To make it work, I need to manually
- add Resources/ as a group, instead of folder reference.
- add "Copy Files Phase" in Build Phase to copy test.txt as "Resources".

Can SwiftPM handle this use-case automatically?
Or is there a way to access test resources from generated xcodeproj test
bundle?

Thanks,
Toshihiro Suzuki
-- 
Toshihiro Suzuki
___
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users