News for hackers. Stuff that matters.
Re:Malicious PyPI packages stealing credit cards and injecti... by delosrogers on Tuesday August 03, 2021 @12:38PM (#28051231)
If I’m not mistaken I think that some languages with managed effects allow you to do this through types. For example, in Elm HTTP requests have the type of Cmd Msg and the only way to actually have the IO get executed is to pass that Cmd Msg to the runtime through the update function. This means you can easily get visibility, enforced by the type system, into what your dependencies do and restrict dependencies from making http requests or doing other effects.

There are no comments on this comment yet.