FAQ
gofmt/simplify.go contains the note:

// Note: We could also simplify slice expressions of the form s[0:b] to
s[:b]
// but we leave them as is since sometimes we want to be very explicit
// about the lower bound.

What is the rationale here? When is explicitly specifying a lower bound of
0 helpful?
The comment currently does not expound on this.

--

---
You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 8 | next ›
Discussion Overview
groupgolang-dev @
categoriesgo
postedOct 1, '13 at 4:27p
activeOct 1, '13 at 7:50p
posts8
users4
websitegolang.org

People

Translate

site design / logo © 2022 Grokbase