News for hackers. Stuff that matters.
Re:A Modern JavaScript Tutorial by speedgoose on Monday December 07, 2020 @03:30PM (#25337016)
template, bytes, string.
Re:A Modern JavaScript Tutorial by earthboundkid on Monday December 07, 2020 @05:06PM (#25338292)
`bytes` is the name of a stdlib package. `string` is the name of a built in type. `template` is technically available, but only because it’s the name of this package, so it can’t refer to itself.
Re:A Modern JavaScript Tutorial by speedgoose on Tuesday December 08, 2020 @04:39AM (#25343477)
True, but they are all available. The stdlib bytes packages is not loaded, and it's valid to use `string` as a variable name, I just tried.

But even if these names were not available, I don't think using `tpl` or `t` or `b` is what should be preferred.