a 99+
var r int = 18
if r 13+ {
fmt.Println("Hooray! We are teen! We can do anything!")
} else {
fmt.Println("Oh No! We are still child, so we need parental control!")
}
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcWm5jaEa36FMqLaea22BTB_WwZOsZpwrW1ei1N_KN64eg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/dd0eb4cfb15efb25b2ea374ace24a3268df2ebc5.camel%40kortschak.io.
a 99+
a >= 99
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/77d05b4d-6743-48ed-affa-b6fb66d13500%40googlegroups.com.
That feels clearer to me. Both concepts are now made explicit. The language Pascal has ranges and a membership clause. ADA also embraced some of it. We could imagine:a in 99..a in 99..123The “in” part feels important to me.
99 <= a <= 128