ExSwift icon indicating copy to clipboard operation
ExSwift copied to clipboard

ExSwift needs a new major version

Open michaeleisel opened this issue 10 years ago • 4 comments

A lot has changed in Swift, from the @noescape parameter to generic extensions. This would be the perfect time to both take advantage of these features and clean up some of the sloppiness of the code base. Here are some changes that should be made:

  • Add the @noescape parameter wherever applicable, which is almost everywhere. It would finally bring methods like Array.each up to snuff with for by eliminating the need for self everywhere.
  • Move all code possible, including everything in Array.swift, to generic extensions.
  • Deal with poorly designed methods like Array.groupBy, which requires a needlessly verbose function parameter name. Another example is Array.zip, which would be better if (1) it returned an array of tuples rather than an array of arrays, so that there would for simpler access in a for loop, and (2) it retained type information from the arrays passed into it.
  • Create a standard terminology for commonly used variables, e.g., decide whether the type for an array should be called T or Element.
  • Create a new set of coding standards, strictly enforced for commits, that would include things such as the above.

This repo is in a very stagnant place while Swift is moving quickly. In the past month, 5 issues have been opened and only one has been responded to. Have most people moved on to some other repo, like Dollar.swift? It seems like this library could be a key supplement to the Swift standard library, bringing it on par with the standard libraries of languages like Ruby and Clojure, but it seems to have little enthusiasm behind it.

@pNre @sebbean @PGLongo

michaeleisel avatar Jul 10 '15 15:07 michaeleisel

Waiting

dickwu avatar Jul 13 '15 02:07 dickwu

+1

kaunteya avatar Aug 01 '15 20:08 kaunteya

+1

Rhuantavan avatar Sep 21 '15 06:09 Rhuantavan

This project seems abandoned. Is there a shining alternative?

hiltonc avatar Sep 22 '15 12:09 hiltonc