Language specification

V does not yet have a separate formal language specification document like the Go spec.

Until V 1.0, the language reference is defined by:

  • This document (doc/docs.md) for syntax and semantics.
  • The compiler implementation in vlib/v/.
  • The executable language tests in vlib/v/tests/, vlib/v/parser/, vlib/v/checker/, and vlib/v/slow_tests/inout/.

When documentation and implementation diverge, compiler behavior and tests are the source of truth.