8000 Improvement/Rewrite for Case Class tutorial/tour · Issue #547 · scala/docs.scala-lang · GitHub
[go: up one dir, main page]

Skip to content
Improvement/Rewrite for Case Class tutorial/tour #547
Closed
@jatcwang

Description

@jatcwang

I'm talking about this page.

Case class is probably one of the best features of Scala and heart-winner for anyone interested to Scala, but I feel like the current documentation doesn't do it justice. The comment section of that article echos my feeling that it's not really beginner friendly.

Here are the improvements that I think we can make, assuming that the majority of our audience is from an imperative background:

  • Better example
    • Most of the people looking at that page won't be familiar with parsing. Switching over to real world 'objects' may help a lot so they don't have to wonder what App and Fun means
  • Show the equivalent java code (e.g. generated hashCode, equals etc etc)
    • Show how succinct Scala is!

If people is happy with my proposal, I'll go ahead and make it happen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0