littledan / proposal-reserved-decorator-like-syntax

Reserved decorator-like syntax as an extension point for future JavaScript syntax
23 stars 0 forks source link

strings are evil #5

Closed Bartolomeus-649 closed 5 years ago

Bartolomeus-649 commented 5 years ago

Any way of avoiding string literals in declarations?

const Point = new StructType([
  { name: "x", type: float64 },
  { name: "y", type: float64 }
]);

imo, strings should only be used when there is a need to "display" human readable text to an en user.

nicolo-ribaudo commented 5 years ago

How is it related to this proposal?

ljharb commented 5 years ago

Isn’t a name human-readable text for end users?

littledan commented 5 years ago

Closing, as the concern seems to be unrelated to this proposal.