!avYyleMexqjFHoqrME:nixos.org

Nix Documentation

409 Members
Discussion about documentation improvements around the Nix ecosystem80 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
17 Jan 2024
@mightyiam:matrix.org@mightyiam:matrix.orgSorry, there's no documentation. There are tests for the repl examples and there are tests for the WIP expression examples. https://github.com/mobusoperandi/eelco/tree/0eb9042220befe188aa4399ffc6615579cebdd5f/crates/eelco/tests12:10:46
@mightyiam:matrix.org@mightyiam:matrix.org

Repl example example:

```nix-repl
nix-shnepl> nope
dope
```
12:11:57
@mightyiam:matrix.org@mightyiam:matrix.org

Expression example example:

```nix
null
```

If it evaluates into null then it's good. If it evaluates into anything else it's bad. If it fails to evaluate, it's bad. The idea is that the author will use Nix assertions to prove their points in the example.

12:13:49
@mightyiam:matrix.org@mightyiam:matrix.orgFor the expression example, we can think of a future feature where the expression is a function that will be called with a scope.12:16:05
@mightyiam:matrix.org@mightyiam:matrix.orgThe usage of assertions in examples is inspired by Rust doctests.12:18:23

Show newer messages


Back to Room ListRoom Version: 6