Skip to content
Beskid The Beskid Book

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

07. The compiler is not your therapist

Lexical basics, types, Option, functions, control flow, and reading diagnostics like an adult."

The compiler is not your therapist

You have manifests, modules, and imports. Now the compiler wants to talk about types—the relationship where one party sets boundaries and the other pretends to listen.

This chapter is the first language-syntax tour: enough to read real .bd files and understand why the analyzer is mad. Normative grammar lives under language meta; we stay informative and link out.

SectionTopic
Lexical basicsTokens, identifiers, comments, literals sketch.
Types and genericsNominal types, ref, generics—no null.
Option and nullabilityOption<T> only.
Functions and methodsCalls, receivers, dispatch sketch.
Control flowif, match, loops—read spec for full grammar.
Read a diagnosticSpans, codes, fixing vs arguing.

06. Monorepo as coping mechanism

Later tutorial tracks cover public API idioms and documentation comments (see book appendix / reference). For exhaustive rules, use platform spec language meta and semantic rules.