From e01450defe936369a4cccc5c7151e5beba0f380b Mon Sep 17 00:00:00 2001 From: Jorge Luis Martinez Gomez Date: Thu, 24 Sep 2020 23:54:08 -0700 Subject: [PATCH] mention why labels from define_combinator are important --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 5a51af4..6b1c689 100644 --- a/README.md +++ b/README.md @@ -177,6 +177,9 @@ between(lit("<"), lit(">"), lit("foo")).label #=> 'between(lit("<"), lit(">"), lit("foo"))' ``` +Having labels that resemble the source code is helpful for [the error +messages](#expectationfailed). + If we use `def` instead of `define_combinator`, then the label would be that of its definition. In the following case, it would be that assigned by `<`.