Re: KeyValueCoding is coming for Swift!
Re: KeyValueCoding is coming for Swift!
- Subject: Re: KeyValueCoding is coming for Swift!
- From: Ricardo Parada <email@hidden>
- Date: Sun, 19 Mar 2017 09:06:00 -0400
Hi Lars,
I just saw that. It looks very interesting and I’m still trying to assimilate that proposal.
I had created something similar to ERXKey in Swift called Key that you use like this:
class Person {
static let firstName = Key<String>(“firstName”)
static let lastName = Key<String>(“lastName”)
var firstName: String
var lastName: String
…
}
Then build a qualifier like this Person.lastName.like(“Para*”).and(Person.age.equals(age). It looks nicer than the ALL-CAPS java version, i.e. Person.LAST_NAME.like(“Para*”). However, when you need key paths this model you have to use the similar to ERXKey’s .dot() which doesn’t look very elegant.
> On Mar 18, 2017, at 2:15 PM, Lars Sonchocky-Helldorf <email@hidden> wrote:
>
> For those interested in this: https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20170313/033998.html
>
> Maybe one day we can reimplement WebObjects in Swift.
>
>
> regards,
>
> Lars
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden