[Pas2js] Records as pure data?

Ryan Joseph ryan at thealchemistguild.com
Wed May 9 12:20:55 CEST 2018



> On May 9, 2018, at 4:46 PM, Ryan Joseph <ryan at thealchemistguild.com> wrote:
> 
> As it is now I see records translated as classes, which is good but there really ought to be a “pure data only” variant which maps to an array.

Actually the more I think about this records are just translated wrong. Records are in fact just arrays anyways and we already have classes so as they are they’re redundant to classes and miss the opportunity to add functionality which JS is missing.

Is there any reason records shouldn’t be arrays by default?

Regards,
	Ryan Joseph



More information about the Pas2js mailing list