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 
> <lars.sonchocky-helld...@hamburg.de> 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      (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
> 
> This email sent to rpar...@mac.com


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to