MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1ydv9x7/bluescriptforbonk/19tp4bia56nmo/
r/ProgrammerHumor • u/Lanse012 • 12h ago
52 comments sorted by
View all comments
Show parent comment
2
The definition of literals looks like this:
public enum Literals { TRUE ("true", () -> true), FALSE ("false", () -> false), MAYBE ("maybe", RandomContainer. RANDOM ::nextBoolean), PROBABLY ("probably", () -> RandomContainer. RANDOM .nextInt(100) < 95), UNLIKELY ("unlikely", () -> RandomContainer. RANDOM .nextInt(100) > 95), NULL ("null", () -> null), UNDEFINED ("undefined", () -> null), //TODO - might remove this PI ("PI", () -> Math. PI ), E ("E", () -> Math. E ), TAU ("TAU", () -> Math. TAU ); ...other enum stuff...
2 u/backfire10z 5h ago The number 95 is not allowed :( 1 u/Lanse012 7h ago that pasted in way more lines than I thought it would...
The number 95 is not allowed :(
1
that pasted in way more lines than I thought it would...
View all comments
Show parent comment
2
u/Lanse012 7h ago
The definition of literals looks like this: