Java and whitespace as syntax (ALA Python)?

Part of the Java syntax incorrectly tells me that these are curly braces and semicolons Is there some kind of translator that will allow me to use all the Java syntax besides that? I want to do something like this:

public class Hello:
    public static void main(String[] args):
        System.out.println("I like turtles.")

public class Another:
    public static void somethingelse():
        System.out.println("And boobs")

It is Python's blank as a syntax model, and I have grown to love it I believe it is cleaner and easier for eyes If not, I'm actually thinking about spending a lot of time writing a parser to do this for me (ideally, it will open it, format it with spaces, and save it as containing only braces and all Java syntax)

Does this lead to problems elsewhere in the language? What kind of hiccups do I expect? I want to use all the rest of the Java syntax, how else, just want to modify this little niggle

I can write and read code in eclipse Yes, I already know how to use code formatting tools and all available autocomplete options. This is just a preference for coding style, so please don't use "you should learn to get used to" or "you should use an IDE that supports you"... No. I don't want to

Solution

Can you switch to Jython? Python syntax, Java runtime environment

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>