Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A couple of issues #1

Closed
cypressious opened this issue Oct 13, 2016 · 1 comment
Closed

A couple of issues #1

cypressious opened this issue Oct 13, 2016 · 1 comment

Comments

@cypressious
Copy link

cypressious commented Oct 13, 2016

  • val name = null is of type Nothing?
  • The multi line string will contain a lot of whitespace if you don't call trimMargin
  • The when snippet is wrong. The branch isOdd(x) will never be triggered because it compares the value of the string x to the boolean result of the call. If you want to have method calls in the when branches, you need to pull the argument out of the when-expression.
  • The correct name for "Tuples" is "Data Classes" paired with "Destructuring". Tuples are something different.
  • The correct name for "Object instance" is "Constructor call"
  • You can leave out the body of a class if it's empty
  • The correct name for "Attributes" is "Primary Constructor"
  • A better name for "Multiple Constructors" is "Optional Arguments in Constructors (as alternative to overloaded constructors)"
@fabiomsr
Copy link
Owner

Fixed, thanks you.

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

No branches or pull requests

2 participants