Java compilers or JVM languages that support goto?

前端 未结 9 2114
孤城傲影
孤城傲影 2021-01-12 20:22

Is there a java compiler flag that allows me to use goto as a valid construct? If not, are there any third-party java compilers that supports goto?

9条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-12 21:02

    You shouldn't, ever, use goto, as it's EVIL ;-)

    More seriously, maybe you could have a look at the famous article from E. Dijkstra : http://www.u.arizona.edu/~rubinson/copyright_violations/Go_To_Considered_Harmful.html

提交回复
热议问题