News for hackers. Stuff that matters.
Re:The Intl.RelativeTimeFormat API by snek on Monday October 22, 2018 @01:13PM (#18276413)
How come?
Re:The Intl.RelativeTimeFormat API by moreira on Monday October 22, 2018 @01:29PM (#18276552)
Quick - is 'seconds' a valid value for the second parameter? You don't know; there's no easy way to know.

If they're constants you can look at all constants available for Intl.RelativeTimeFormat, IDEs can do autocomplete, analysers can check if the value is valid and alert if not. That's just off the top of my head; I imagine there are even more reasons.

Re:The Intl.RelativeTimeFormat API by felixfbecker on Monday October 22, 2018 @01:41PM (#18276651)
TypeScript can check and autocomplete valid values of strings too, but I agree with the other points.