#2008 generics

Rekdal Sun 19 Aug 2012

I assume that the subject is not new but I'd like to know the state of the art. On the net i could find many good feedback about Fantom. However, the main complaint of users is "the lack of user defined generics". Are they really on the roadmap? Or what else? Thx ;-)

DanielFath Sun 19 Aug 2012

I can't say for sure, but Generics have been requested and suggested ad nauseam. See here.

Sadly roadmap wasn't updated in quite a while. IIRC there should be bug fixes, extension functions and generics. But it's been a while, really.

brian Sun 19 Aug 2012

Generics will almost certainly happen at some point, but the real question is what the design will look like. A lot of people who haven't used Fantom before think using Fantom without generics would be as painful as using Java without generics - but that really isn't the case. Fantom without generics is way more pleasant to use than Java with generics :-)

SlimerDude Mon 20 Aug 2012

With generic Lists and Maps, inferred variable declaration and being able to pass functions around - I can't say I've missed or needed to use user generics in Fantom at all. (Well okay then, maybe once!)

Login or Signup to reply.