• Add a Comment
  • Edit
  • More Actions v
  • Quarantine this Entry

Comments (2)

1 geaden commented Permalink

Hello! Nice trick! But what's the difference from new tw.object.listOf.<variableType>? Is it faster?

2 DanhPhi commented Permalink

in terms of performance, i don't think we can win by using this technique, however, if we have a generic service to initialise a list, I think this would provide a great advantage in terms of reusability. To make this reusable, we could look to have an "variableType" as an input string to this service.

Add a Comment Add a Comment