now “Any” • “void” is now “Unit” • Everything is final unless declared open • This causes problems with mocking for unit testing • https://github.com/nhaarman/mockito-kotlin
public String getFirstName() { return firstName; } public void setFirstName(String firstName){ this.firstName=firstName; } @Override public boolean equals(Object obj) {…} @Override public int hashCode() {…} @Override public String toString() {…} }
for Android Developers - Antonio Leiva • Interal memo on Kotlin at Square - Jake Wharton • How I fell in love with a programming language - Dan Kim • Making Safer Apps - Eric Young