[Pas2js] Testing generics

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Oct 30 09:41:40 CET 2019

On Sun, 27 Oct 2019 13:46:34 -0700 (MST)
warleyalex via Pas2js <pas2js at lists.freepascal.org> wrote:

> I sincerely don't see the pros, if it's worthy to implement generic
> external classes like this one.

The last one TJSGenDataView<T> did not use T, so I agree.

Then there were several classes like TJSGenFloat64Array<T>, where T is
only used for functions like "from", where I see no real need for
type safety.

The TJSGenArray<T> makes sense.


More information about the Pas2js mailing list