Gitup: Maybe... Just maybe... rewrite GitUp in Swift?

Created on 29 Aug 2019  路  5Comments  路  Source: git-up/GitUp

Maybe...
Rewrite GitUp ( only app ) in Swift?
It seems that it will not be so hard, only Document.m is big enough ( 3k LoC )...

Most helpful comment

There's no reason to rewrite GitUp, or part of it, in another language (unless wanting to introduce new bugs). Current solution has been battle tested for years and works.

All 5 comments

Why? Seems like an unnecessary change to me. If we were to ever do that I鈥檇 want @swisspol approval and I鈥檓 going to guess the answer would be no.

@lucasderraugh Because swift has better readability in architectural patterns like nested classes and domains.
Reading boilerplate or throw away error handling ( passing NULLs everywhere is a generic pattern in ObjC, cause "system functions can't fail" ) - typical ObjC evil.
Yes, nil and dynamic dispatching with beautiful macOS architecture save time and bring you to finish without hassle, but...

If there鈥檚 one thing I hate more than either language, it鈥檚 having to interop with the 2. If it鈥檚 a leaf node then perhaps we could consider interoping, but we鈥檒l need to talk to libgit2 which C/Swift is kind of a pain.

@lucasderraugh
One super-feature of ObjC - it barely changes over time ( look at Swift 3 support in latest Xcode ).

There's no reason to rewrite GitUp, or part of it, in another language (unless wanting to introduce new bugs). Current solution has been battle tested for years and works.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

swisspol picture swisspol  路  5Comments

swisspol picture swisspol  路  3Comments

jwiegley picture jwiegley  路  6Comments

adius picture adius  路  5Comments

gotjoshua picture gotjoshua  路  4Comments