News for hackers. Stuff that matters.
Re:Castle Engine – free, os, x-platform, 2D/3D game engine u... by Jean-Papoulos on Tuesday February 20, 2024 @10:12AM (#39442218)
I just tried make a ".any" generic function for arrays, and by god :

Most languages : myArray.any((e) => true);

Delphi : AClass.any<Type>(myArray, function (e) : Boolean begin Exit(True); end);

The readability is through the roof, lol.

There are no comments on this comment yet.