3 ms·
const libSuffix = { darwin: "so", linux: "so", windows: "dll", }[Deno.build.os] oh no, what a bad example. Hope no one ever actually copies that… (it's bad be
by floatboth 5y ago
const libSuffix = { darwin: "so", linux: "so", windows: "dll", }[Deno.build.os]
oh no, what a bad example. Hope no one ever actually copies that…
(it's bad because it unnecessarily limits the list of platforms to just three. great way to make BSD users hate you. just do: if (windows) "dll" else "so")
- bartlomieju 5y agoThanks, I'll update the example