Looking at the patch[1], probably not. There isn't really a lot of complex string handling involved; it's basically just forgetting to forbid "--". I don't really see how any language choice could help you with this.
[1]: https://github.com/sudo-project/sudo/commit/0274a4f3b403162a...