From c8b0dcea4a3e67289ccf985b10616200817cca86 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 20 Jan 2022 08:54:59 -0500 Subject: [PATCH] doc/go1.18: note short-circuit and/or in html/template It was already noted in text/template; copied from there. Change-Id: Ie749d04004af60f2333073ddf556ff7e16c81c45 Reviewed-on: https://go-review.googlesource.com/c/go/+/379794 Trust: Russ Cox Run-TryBot: Russ Cox TryBot-Result: Gopher Robot Reviewed-by: Emmanuel Odeke Reviewed-by: Ian Lance Taylor --- doc/go1.18.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/doc/go1.18.html b/doc/go1.18.html index 4d1b6520ee..fb9e685c69 100644 --- a/doc/go1.18.html +++ b/doc/go1.18.html @@ -571,7 +571,7 @@ Do not send CLs removing the interior tags from such phrases.

Trim, TrimLeft, - and TrimRight are now allocation free and, especially for + and TrimRight are now allocation free and, especially for small ASCII cutsets, up to 10 times faster.

@@ -759,6 +759,14 @@ Do not send CLs removing the interior tags from such phrases. new {{continue}} command will immediately start the next loop iteration.

+ +

+ The and function no longer always evaluates all arguments; it + stops evaluating arguments after the first argument that evaluates to + false. Similarly, the or function now stops evaluating + arguments after the first argument that evaluates to true. This makes a + difference if any of the arguments is a function call. +

@@ -938,7 +946,7 @@ Do not send CLs removing the interior tags from such phrases.

Trim, TrimLeft, - and TrimRight are now allocation free and, especially for + and TrimRight are now allocation free and, especially for small ASCII cutsets, up to 10 times faster.