-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Docs cleanups #10878
Conversation
- 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"} |
There was a problem hiding this comment.
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] } |
There was a problem hiding this comment.
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)) => |
There was a problem hiding this comment.
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.
Co-authored-by: Jonathan <[email protected]> Co-authored-by: Lan, Jian <[email protected]>
The switch to 3 space is an experiment, we can undo it separately if we don;t like it.