News for hackers. Stuff that matters.
Re:Deno 1.9 by folkrav on Friday April 16, 2021 @12:05PM (#26835627)
Say all you need is a fixed set of strings that get reused everywhere. What is better accomplished by defining a union type AND consts literals rather vs creating a single string-based enum and using that everywhere? I feel like I'm misunderstanding...
Re:Deno 1.9 by mssundaram on Thursday April 22, 2021 @01:23AM (#26899052)
You don't even need the const literals.

    type Color = "red" | "blue" | "green";