You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I back to Deno after some time, I figured out that Deno made some previously consistent behaviou - inconsistent now ...
For example, deno install type checks packages, but deno run do not ...
WHY ?!
What if package would be imported by url ? Should it be checked during deno run command ???
What if some junior developer instead of adding package in deno.json with jrs: specifier will add it locally by url and in such way omit the type check verification ?
I would made differently, leave deno run type checking by default, and added to deno.json option that by default to not type check (nor during deno install nor deno run), otherwise if nothing is mentioned leave deno run and deno install - type checking by default
I prefer "opt-out" security instead of "op-in" security
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When I back to Deno after some time, I figured out that Deno made some previously consistent behaviou - inconsistent now ...
For example,
deno installtype checks packages, butdeno rundo not ...WHY ?!
What if package would be imported by url ? Should it be checked during
deno runcommand ???What if some junior developer instead of adding package in
deno.jsonwithjrs:specifier will add it locally by url and in such way omit the type check verification ?I would made differently, leave
deno runtype checking by default, and added todeno.jsonoption that by default to not type check (nor duringdeno installnordeno run), otherwise if nothing is mentioned leavedeno runanddeno install- type checking by defaultI prefer "opt-out" security instead of "op-in" security
Beta Was this translation helpful? Give feedback.
All reactions