- A surgery, which is known to have a 50/50 chance of success even at the hands of an excellent surgeon, goes poorly and the patient dies.
- A serial killer spends six months plotting the murder of his victim before executing them.
- A shoving match breaks out at a bar. Somebody slips, falls, hits their head on the ground, and dies.
- You accidentally frighten somebody by sneezing in a quiet library. They have a heart attack and die.
From a purely logical perspective, these are literally the same thing. A person dies! Realistically speaking, any legal system needs to consider intent.
Similarly, if the difference between illegal software and legal software is the value of a random ID in a unit test, or the presence of a boilerplate "Please don't use this for copyright infringement" message in the README, then the law isn't really "promoting the Progress of Science and useful Arts", it is just a gotcha trap for developers who forget to copy-paste a piece of text.
The equivalent from the Prohibition Era would be the warnings on "grape bricks" that told buyers "not to leave that jug in the cool cupboard for 21 days, or it would turn into wine".[0]
[0] https://www.thedrinksbusiness.com/2017/07/rare-prohibition-g...
Crimes like first-degree murder have intent as a requirement. People are convicted of it all the time, and it's based on facts and evidence from before and after the killing.
Willful homicide, for non Americans.