On Jun 26, 2009, at 4:36 AM, john skaller wrote: > I don't like the STL iterator stuff much for Felix.
Yeah, I never was too fond of it either. It's really cool that we can do this, but since I at least lean towards more functional-style interfaces, I didn't see myself using them that often. Oleg had a paper about this very problem, the whole internal vs external iterators: http://okmij.org/ftp/papers/LL3-collections-enumerators.txt I wonder if we could draw any inspiration from it. > So we have this little problem: > > typeclass Container [c,v] > { > virtual fun len: c -> size; > virtual fun empty(x: c): bool => len x == size(0); > } I just realized that this means we can't represent infinite streams with this. Maybe it should be the other way around, where we first have a Sequence, then we have a container. ------------------------------------------------------------------------------ _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language