D and AI / dub registry and AI
Julian Fondren
julian.fondren at gmail.com
Sun Feb 22 22:39:39 UTC 2026
On Sunday, 22 February 2026 at 22:31:05 UTC, monkyyy wrote:
> outside ai; I unironically wrote this code. If you care about
> the safety of my usage of std.process I would need a better api.
If the AI had used appropriately strong words, you would've
already asked it for a replacement. My initial all-caps statement
had DO THIS INSTEAD. SEE? IT'S EASY ENOUGH.
Lukewarm code review is actually really bad.
```d
import std.process : execute;
import std.stdio : writeln;
// misleading variable name!
string exe(string[] s) => execute(s).output;
void main(string[] args) {
exe(["curl", args[1], "--output", args[2]]).writeln;
}
```
More information about the Digitalmars-d
mailing list