A few months ago I saw a funny story about a guy who added generics/templates to JavaScript (or maybe TypeScript?) by using runic characters that look like angle brackets to enclose the template parameter, then using a preprocessor to convert the runes, etc. to actual, legal types before compilation. I can’t seem to find it anywhere; hoping someone knows what I’m talking about.

  • DickFiasco@lemm.eeOP
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 year ago

    Found it! The language was Go, and the characters were Canadian Aboriginal, not Runic:

    Where is your God now?

  • Lambda@lemmy.ca
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I think I remember the article too. Sadly TSs generics support make it particularly tricky to search for. I hope somebody finds it.