Re: [swift-users] CustomStringConvertible?

2017-09-09 Thread Joanna Carter via swift-users
Greetings > Thanks for your reply, Rien. I just tried this again, and now it seems that > either is acceptable. Seems a little weird, but I guess I’d rather have more > flexibility than less. > class GPS : Powerable, CustomStringConvertible { > // Either of these work > //var

Re: [swift-users] XML parsing on Linux, with Swift 3.1

2017-09-09 Thread Georgios Moschovitis via swift-users
Thank you, I wasn’t aware of XMLDocument. I managed to get XMLParser to work for my use case though… -g. ___ swift-users mailing list swift-users@swift.org https://lists.swift.org/mailman/listinfo/swift-users

Re: [swift-users] XML parsing on Linux, with Swift 3.1

2017-09-09 Thread Bouke Haarsma via swift-users
On 2017-09-05 06:01:55 +, Georgios Moschovitis via swift-users said: Hi, I would like to parse an RSS feed using Swift 3.1 on Linux. I tried to use Foundations’s XML but I only managed to get segmentation faults. Is this supposed to work on Linux? I have only seen examples on iOS. Apart

Re: [swift-users] CustomStringConvertible?

2017-09-09 Thread Rien via swift-users
Ah, yes. It is possible to ‘store’ it as a fixed string. But I would still expect the compiler to treat it as if it were a computed property. Given that this is a protocol and a protocol cannot define stored properties. (yet anyway) OTOH, what do I know about compilers… lol! Regards, Rien