Nix: Make nix repl accept commands ending with semicolon

Created on 11 Sep 2018  路  1Comment  路  Source: NixOS/nix

Actual:

nix-repl> 1 + 2
3

nix-repl> 1 + 2;
error: syntax error, unexpected ';', expecting $end, at (string):1:6

Expected

nix-repl> 1 + 2
3

nix-repl> 1 + 2;
3

Reason:

This will make it easier to paste code chunks from .nix files to nix repl

Most helpful comment

I disagree. I think this just leads to confusion about what an expression is. Expressions don't end in semicolons, only attributes do.

>All comments

I disagree. I think this just leads to confusion about what an expression is. Expressions don't end in semicolons, only attributes do.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Infinisil picture Infinisil  路  3Comments

luc65r picture luc65r  路  3Comments

matthewbauer picture matthewbauer  路  3Comments

dasJ picture dasJ  路  3Comments

LisannaAtHome picture LisannaAtHome  路  3Comments