Skip to content

Java 9 allows you to do a whole lot more with no semis now!#1

Open
graingert wants to merge 1 commit intoefoxepstein:masterfrom
graingert:patch-1
Open

Java 9 allows you to do a whole lot more with no semis now!#1
graingert wants to merge 1 commit intoefoxepstein:masterfrom
graingert:patch-1

Conversation

@graingert
Copy link
Copy Markdown

@graingert graingert commented Feb 23, 2018

consider: jshell> "foo".chars().map(v -> v + 2).reduce((a, b) -> a+b)

also, can you enable issues.


This change is Reviewable

consider: jshell> "foo".chars().map(v -> v + 2).reduce((a, b) -> a+b)
@efoxepstein
Copy link
Copy Markdown
Owner

I kind of like it using the older, more restricted language. If I wanted to use an expressive language and avoid semicolons, I'd pick Python.

I'm not really interested in accepting pull requests for this file, though I do appreciate your interest. Maybe I should change the file name to TuringMachineWithNoSemicolonsAndLambdasBecauseThoseAreCheatingToo.java--then the filename length would be on par with what's typical for the language.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants