Hwæt. We Gardena in geardagum,
þeodcyninga, þrym gefrunon,
hu ða æþelingas ellen fremedon.
Oft Scyld Scefing sceaþena þreatum,
monegum mægþum, meodosetla ofteah,
egsode eorlas. Syððan ærest wearð
feasceaft funden, he þæs frofre gebad,
weox under wolcnum, weorðmyndum þah,
oðþæt him æghwylc þara ymbsittendra
ofer hronrade hyran scolde,
gomban gyldan. þæt wæs god cyning.
ðæm eafera wæs æfter cenned,
geong in geardum, þone god sende
folce to frofre; fyrenðearfe ongeat
þe hie ær drugon aldorlease
lange hwile. Him þæs liffrea,
wuldres wealdend, woroldare forgeaf;
Beowulf wæs breme blæd wide sprang,
Scyldes eafera Scedelandum in.
Biniman Idugboe wrote:Is the term stream a mask of something far more complicated going on behind the scene?
Biniman Idugboe wrote:For example, where did ReferencePipeline.filter (ReferencePipeline.java:164) come from?
Whan that Aprille with his shoures soote,
The droghte of March hath perced to the roote,
And bathed every veyne in swich licóur
Of which vertú engendred is the flour;
Whan Zephirus eek with his swete breeth
Inspired hath in every holt and heeth
The tendre croppes, and the yonge sonne
Hath in the Ram his halfe cours y-ronne,
And smale foweles maken melodye,
That slepen al the nyght with open ye,
So priketh hem Natúre in hir corages,
Thanne longen folk to goon on pilgrimages,
And palmeres for to seken straunge strondes,
To ferne halwes, kowthe in sondry londes;
And specially, from every shires ende
Of Engelond, to Caunterbury they wende,
The hooly blisful martir for to seke,
That hem hath holpen whan that they were seeke.
Campbell Ritchie wrote:Yes, OP realised he had a correctly‑written singleton. He was asking what would happen if he hadn't written it correctly.
Campbell Ritchie wrote:That is of course because the lifetime of the local variable cannot be guaranteed to be longer than the lifetime of the λ. The same applied to anonymous classes.
Mike Simmons wrote:. . . It just seems an arbitrary restriction that we can manipulate a mutable field, but not a mutable local.