Blog

A checker that knows your routes

2 min read

Type checkers stop at the edge of the language. When routes, markup and effects are the language, the checker can see the whole web program.

A type checker for a web framework sees functions. It does not see the router's path strings, the template's variables, the SQL in a string or which handler can reach the database. Those are where web bugs live, and they are invisible to it.

When those parts are syntax, a checker can read them. That is the plan for quillo check: run before the program, and find the mistakes a web program actually makes.

What it should catch

quillo check main.qwe

Before running, and while typing

The same checks run before quillo run starts, so a program with a mistake in it does not start half-working. A language server can run them as you type and underline the line.

What it will not be

A full type system with generics everywhere is not the goal. Types are checked when values are made and when functions are called. The checker's job is the mistakes that are cheap to find early and expensive to find in production.

Since then: quillo check does this, before every quillo run and in editors. See Checking.

The Quillo newsletterNew posts, components and plugins, about once a week. No tracking.

Thread
6Useful? Like it, or add to its thread below.

Thread 0 posts

On A checker that knows your routes: questions, tips, corrections, and code that uses it.

No posts yet. The first one opens the thread.