ed reached the optimum not only in user interface but in error message already years ago. In the below you have to be careful not to confuse the user input and the (error) response:
$ ed ? ? q $ -- There is this special biologist word we use for 'stable'. It is 'dead'. -- Jack Cohen