NASA’s 10 Rules for Safety-Critical Code

27 points by azhenley


aiono

I find it interesting that loops are allowed as long as they have bounds, but recursion is in general to be avoided. A similar restriction can be enforced in recursion as well, by ensuring that subscalls have smaller arguments, similar to how Agda works. Seems like what they actually want is guaranteed termination.