Re:Proposal: Go 2 transition
by everybodyknows on Friday October 26, 2018 @06:24PM
(#18313138)
One limitation is that although "int" can be sub-typed, such a variable cannot directly index a slice.
[ Parent
| on HN ]
I’m confused. First, there’s no notion of sub-typing in Go. Second, the closest thing I can think of what you mean does work: https://play.golang.org/p/IE9sg4CwCd_C
Re:Proposal: Go 2 transition
by JohnStrangeII on Saturday October 27, 2018 @06:33AM
(#18315184)
Rust doesn't have proper integer subtypes either. Ada has.
Re:Proposal: Go 2 transition
by steveklabnik on Saturday October 27, 2018 @07:32AM
(#18315295)
Aren’t ada’s runtime checked? You can do that in Rust.
Only if it cannot be proven at compile time.
Re:Proposal: Go 2 transition
by steveklabnik on Saturday October 27, 2018 @03:08PM
(#18317217)
Interesting. You wouldn’t happen to have a link to docs, would you?
The docs are the Ada language standard.
http://www.ada-auth.org/standards/index.html
Like with other languages, each vendor is free to do their best for optimizations, while keeping language semantics.
Besides Ada Core, there are a couple others but at enterprise budget levels.
Re:Proposal: Go 2 transition
by steveklabnik on Saturday October 27, 2018 @06:59PM
(#18318170)
Thanks