Created
August 21, 2015 19:51
-
-
Save MatrixFrog/e6fc186ca0814f3d510d to your computer and use it in GitHub Desktop.
draft email to [email protected]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
On https://docs.oracle.com/javase/tutorial/java/javaOO/lambdaexpressions.html there is the following enum: | |
public enum Sex { | |
MALE, FEMALE | |
} | |
Sex and gender are not that simple. Some people don't fit into either category. I realize this is just sample code but it serves to exclude lots of people who will read these docs, so I would suggest changing the field type to something more free-form, such as a String. Or, if it's necessary to use an enum to demonstrate some language feature, use something which is actually a binary state, such as | |
public enum AccountType { | |
FREE, PREMIUM | |
} | |
Thank you! | |
Tyler |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment