Closed GoogleCodeExporter closed 8 years ago
There is also FHashMap & FVector
Original comment by alex.tka...@gmail.com
on 11 Mar 2011 at 10:10
Wow, didn't notice that! Anyway a sorted variant would be useful.
Original comment by gromop...@gmail.com
on 11 Mar 2011 at 10:19
And a bit more concise syntax that "FHashMap map = FHashMap.empty" would be
nice, although I have no idea how to do that.
Original comment by gromop...@gmail.com
on 11 Mar 2011 at 10:23
Exact syntax is
def map = FHashMap.emptyMap
I can't imagine anything better except introducing some syntax for factory
methods, which I have no idea how to do.
Maybe something like
static FHashMap factory () {...}
and then you can use it as constructor. Not sure if it worth an effort
Regarding sorted map - contributions are welcome.
Original comment by alex.tka...@gmail.com
on 11 Mar 2011 at 10:36
I'd like to use FMaps as fields, where def is out of the question. OTOH the
right-hand side is also out of the question since the fields are final, so
let's forget about that issue. I agree that this alone is not serious enough
to care about factory methods.
Original comment by gromop...@gmail.com
on 11 Mar 2011 at 10:41
Original comment by alex.tka...@gmail.com
on 11 Mar 2011 at 10:49
Original issue reported on code.google.com by
gromop...@gmail.com
on 11 Mar 2011 at 10:04