NSA advises organizations to consider making a strategic shift from programming languages that provide little or no inherent memory protection, such as C/C++, to a memory safe language when possible.
Examples of memory safe language include C#, Go, Java®, Ruby™, Rust®, and Swift®