xxleyi / learning_list

聚集自己的学习笔记
10 stars 3 forks source link

编译器之 Error Handling #291

Open xxleyi opened 3 years ago

xxleyi commented 3 years ago

image image image image image

image

It's gonna be a lot harder to maintain and essentially all this is doing is promoting common mistakes to alternative syntax but this is used in practice. People do this sort of thing and you will see for example when you use GCC and other production C compilers they will often warn you about things you're not supposed to do but they'll accept them anyway and this is essentially the mechanism by which they do that.

Error Correction: image image image