Skip to content

Docs cleanups #10878

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

Merged
merged 6 commits into from
Dec 23, 2020
Merged

Docs cleanups #10878

merged 6 commits into from
Dec 23, 2020

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Dec 21, 2020

  • Fix outdated syntax
  • Switch to indentation syntax almost everywhere
  • Explain soft keywords in detail
  • Switch to 3 space indent

The switch to 3 space is an experiment, we can undo it separately if we don;t like it.

 - Fix outdated syntax
 - Switch to indentation syntax almost everywhere
 - Explain soft keywords in detail
 - Switch to 3 space indent

The switch to 3 space is an experiment, we can undo it separately if we don;t like it.
`new ... with` is currently under discussion, but not supported.
case "string" => '{"a"}
strExpr.valueOrError match
case "int" => '{1}
case "string" => '{"a"}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is a match that is not indented as the others.

def setForExpr[T: Type](using Quotes): Expr[Set[T]] =
Expr.summon[Ordering[T]] match
case Some(ord) => '{ new TreeSet[T]()($ord) }
case _ => '{ new HashSet[T] }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is a match that is not indented as the others.

}
private def sumExpr(argsExpr: Expr[Seq[Int]])(using Quotes): Expr[Int] =
argsExpr match
case Varargs(args @ Exprs(argValues)) =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is another match that is not indented as the others.

@b-studios b-studios merged commit 854f583 into scala:master Dec 23, 2020
@b-studios b-studios deleted the fix-docs branch December 23, 2020 11:46
michelou added a commit to michelou/scala3 that referenced this pull request Dec 23, 2020
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

Successfully merging this pull request may close these issues.

3 participants