Closed
Description
From a discussion with @griesemer and @ianlancetaylor, who have different opinions on this:
We could make Go support a ...
statement that compiles but fails at runtime, as if you wrote, say, panic("TODO")
.
Like https://docs.perl6.org/routine/....html
So sample code in space-constrained slides can say func (m *Method) Foo() { ... }
and be valid, but mostly so work-in-progress code during development compiles with ...
, instead of having to write panic("TODO")
.
cmd/vet
could perhaps fail if any exist in your program, to limit its spread (and prevent it from getting checked in).
It'd be a terminating statement.
In Perl6/Raku, it has to be the only statement in a block it seems.