groue / GRMustache.swift

Flexible Mustache templates for Swift
http://mustache.github.com/
MIT License
597 stars 155 forks source link

typo in ZipFilter.swift? #27

Closed denisbetsi closed 8 years ago

denisbetsi commented 8 years ago

Line 40: zippedGenerators.append(AnyGenerator(array.generate())) <-- errors out with AnyGenerator not accepting any arguments

should it perhaps be zippedGenerators.append(anyGenerator(array.generate()))

groue commented 8 years ago

Hello @denisbetsi.

AnyGenerator or anyGenerator depends on the Swift version. Which one are you using, and on which platform (apple or linux) ?

acgs commented 8 years ago

I have the same issue - on Apple using XCode 7.2.1 and Swift 2.1.1. Currently updating to XCode 7.3 and Swift 2.2, so we'll see if that changes things.

denisbetsi commented 8 years ago

I have same setup as as acgs.

acgs commented 8 years ago

Just checked with new XCode - looks like anyGenerator is deprecated now in Swift 2.2, and it is preferred to use AnyGenerator. So, this issue can probably be closed, @groue.

groue commented 8 years ago

You are right, @acgs. The current state of GRMustache works fine with Xcode 7.3.