On Sat, Sep 29, 2018, 10:02 Mark Rotteveel <m...@lawinegevaar.nl> wrote:
> > > It's also the way modern languages implemented the same concept > > recently, say JavaScript (ecmascript) and C# with yield. > > Do you know of an equivalent example in those languages, because I can't > easily think of an equivalent aggregate function in a similar style in > either JavaScript or C#. > JavaScript "yield" could also receive data sent by the caller. It does not aggregate (reduce number of rows) directly, but if you think well, at least the concept in Firebird should not aggregate directly, it should produce accumulated aggregation (necessary for window function running aggregation), so in fact is the engine that reduce numbers of rows. So SUSPEND in this context is very like JS YIELD with caller doing a reduce. I have even thought in use YIELD keyword in this context. Adriano
Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel