bearophile Wrote: > Also note that G++ already allows you to write programs with and, or, not, > xor, etc. The following code compiles and run correctly, so instead of Python > you may also say I want to copy G++:
copying G++ is not always a good idea :) As I remember this alternative syntax is supported for compatibility with keyboards which don't have kinda exotic ~^&| characters. And I don't think that there is a method to make && a syntax error as you proposed.