Skip to content

Instantly share code, notes, and snippets.

@marianosimone
Created August 8, 2018 17:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marianosimone/2804da46df52dd74685df2177f49ac21 to your computer and use it in GitHub Desktop.
Save marianosimone/2804da46df52dd74685df2177f49ac21 to your computer and use it in GitHub Desktop.
example 2 [java is dead, long live Kotlin - 2018-08 post@thumbtack]
class Foo {
private static boolean shouldTrollKotlin() {
return true;
}
public static String bar() {
if (shouldTrollKotlin()) {
return null;
}
return “I’m cool”;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment