Giter Club home page Giter Club logo

Comments (12)

jgorset avatar jgorset commented on August 24, 2024

Coming from Ruby, I like how the old one reads like a sentence (or at least the first part of it). Maybe you could still do that with less verbosity, though.

from sync.

jgorset avatar jgorset commented on August 24, 2024

Actually the first argument of the proposed syntax reads better (Sync changes [...]), but the second worse ([...] entityName).

from sync.

jgorset avatar jgorset commented on August 24, 2024

So I'm totally bad at this, but what about…

[Sync changes:notes as:@"Notes" ...]

…?

from sync.

jgorset avatar jgorset commented on August 24, 2024

Hell, if DATAStack does what I think it does, what about…

[Sync changes:notes as:@"Notes" on:self.dataStack ...]

…? Too crazy!?

from sync.

3lvis avatar 3lvis commented on August 24, 2024

Hell, if DATAStack does what I think it does, what about…

[Sync changes:notes as:@"Notes" on:self.dataStack ...]

…? Too crazy!?

That's very Swift of you, we should totally change the API once we make a Swift bridge.

from sync.

jgorset avatar jgorset commented on August 24, 2024

So ahead of my time, you know. ;-)

from sync.

RamonGilabert avatar RamonGilabert commented on August 24, 2024

What about

+ (void)changes:(NSArray *)changes
   inEntityName:(NSString *)entityName
      dataStack:(DATAStack *)dataStack
     completion:(void (^)(NSError *error))completion

from sync.

3lvis avatar 3lvis commented on August 24, 2024

@RamonGilabert I like that!

from sync.

RamonGilabert avatar RamonGilabert commented on August 24, 2024

@3lvis I was thinking in adding just changes inEntity dataStack (or just stack) the user will see the placeholder saying, entityName so I think they'll know what to put.

from sync.

3lvis avatar 3lvis commented on August 24, 2024

@RamonGilabert I haven't choose that direction because of NSEntityDescription, in a Core Data context when you say entity most of the time you are referring to a NSEntityDescription instance.

We could go for

+ (void)changes:(NSArray *)changes
   inEntityName:(NSString *)entityName
      dataStack:(DATAStack *)dataStack
     completion:(void (^)(NSError *error))completion

And when we rewrite the entire thing in Swift we make it simpler :)

from sync.

RamonGilabert avatar RamonGilabert commented on August 24, 2024

All right, let me finish a small surprise and I'll go for it! 👯

from sync.

3lvis avatar 3lvis commented on August 24, 2024

Fixed on #40!

Thanks @RamonGilabert 🌟 💐 🌟

from sync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.