TL;DR: I want to decode types differently based on whether they conform to a
protocol on top of "Decodable". I've figured out how to get keyed containers to
decode these types, but can't figure out how to do the same for un-keyed and
single value containers. Is it possible?
---
I have written s
Hi,
> On Dec 7, 2015, at 8:19 AM, Arsen Gasparyan via swift-users
> wrote:
>
> Hello,
> Is it possible to run a specific test file like in rspec:
>
> rspec path/to/spec/file.rb
>
> I have tried ./swift/utils/build-script -t
> swift/test/decl/protocol/req/recursion.swift but it doesn't work
Is there an Xcode project file that makes building/debugging easier?
Stephen
On Thu, Dec 10, 2015 at 11:55 AM, Harlan Haskins via swift-users <
swift-users@swift.org> wrote:
> Lots of the Swift team uses Xcode, but the Swift repo has handy vim
> bindings:
> https://github.com/apple/swift/tree/ma
> On Dec 29, 2015, at 6:37 AM, Kristof Liliom via swift-users
> wrote:
>
> Hi,
>
> What is the best way to do a one line check for an enum with a specific inner
> value?
I'm not sure this can be done in one line since it generally requires if- or
guard-case-let.
I'd do this two-liner: