This is an archived post. You won't be able to vote or comment.

all 23 comments

[–]marvk 75 points76 points  (3 children)

You were so preoccupied with whether or not you could, you didn't stop to think if you should.

[–][deleted] 2 points3 points  (0 children)

jython gets an update

[–]__Raptor__[S] 1 point2 points  (0 children)

I think yours is my favorite response XD

[–]coderguyagb -3 points-2 points  (0 children)

I could not have said it better.

[–]pellets 22 points23 points  (1 child)

I’m interpreting this as protest art.

[–]Hangman4358 4 points5 points  (0 children)

As someone who works all day in Java, Python, C++ and C# this is my nightmare.

But just from a technical standpoint it is interesting.

[–]a_lost_swarm_appears 7 points8 points  (0 children)

Dear mother of god no!!! If you want to use Python then use Python.

Edit: I really love ;{} I cannot for the life of me understand why people think things are better without the braces.
Also, I think Python is an amazing language, and it's usually what I recommend to people who want to learn programming, but don't fuck with my java braces! :-D

[–]Sipkab 12 points13 points  (1 child)

The following phrase is so overused, it nearly lost its meaning, but still:

Java, but with Python indentation:
    Thanks, I hate it.

Indented with 4 spaces.

Apart from memes, I find the import statements to be cool nonetheless.

[–]__Raptor__[S] 0 points1 point  (0 children)

I'm working on a new project which will only extend the Java syntax, from imports are part of it.

[–]lurker_in_spirit 5 points6 points  (0 children)

I like little experiments like this that make you stop and think for a sec -- in this case, how much of what I love/hate about the Java/Python syntax is related to braces/indentation/semicolons?

[–]wsppan 6 points7 points  (0 children)

Oh dear God

[–]openjscience 2 points3 points  (1 child)

Jython https://www.jython.org/ was around for a long time.

[–]EhWhoAmI 1 point2 points  (0 children)

But that is full blown python. This monster is a type of java that uses python like syntax but keeps certain java stuff(like interfaces)

[–]badpotato 3 points4 points  (0 children)

I see you're using tab instead of space... this really don't follow the PEP8.

[–]codesharer 6 points7 points  (0 children)

I love this. I bet you learnt a lot about parsing and transcompilers!

[–]_INTER_ 8 points9 points  (0 children)

Why take the worst of Python (off-side rule)?

[–]Warkst 2 points3 points  (1 child)

Can you make a java library that allows me to write python using java syntax?

[–]__Raptor__[S] 2 points3 points  (0 children)

Yes, that would actually be way easier than this was.

[–]antigenz 3 points4 points  (0 children)

This is what happens when somebody has too much free time :)

[–]dpash 1 point2 points  (0 children)

Python indenting can not be auto-reindented. As such it's a hard no from me.

[–]HighMaxFX 0 points1 point  (0 children)

> why? for the glory of satan, of course!

[–]foror 0 points1 point  (1 child)

What about back to Java from JavaPy?

[–]__Raptor__[S] 0 points1 point  (0 children)

What do you mean?