Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added more info to an error message for <> #2117

Closed
p6rt opened this issue Aug 31, 2010 · 3 comments
Closed

Added more info to an error message for <> #2117

p6rt opened this issue Aug 31, 2010 · 3 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Aug 31, 2010

Migrated from rt.perl.org#77568 (status was 'resolved')

Searchable as RT77568$

@p6rt
Copy link
Author

p6rt commented Aug 31, 2010

From @tadzik

The 'in Perl 6 use lines() or ()' error message in current Rakudo
doesn't tell much about the misuse of <>. This patch changes the message
to the one similar to STD's one.

Regards,
Tadeusz So�nierz

@p6rt
Copy link
Author

p6rt commented Aug 31, 2010

From @tadzik

0001-Added-more-info-to-an-error-message-for.patch
From 914560536757f109baacdecde5bc6f0316278e00 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tadeusz=20So=C5=9Bnierz?= <tadzikes@gmail.com>
Date: Tue, 31 Aug 2010 14:14:27 +0200
Subject: [PATCH] Added more info to an error message for <>

---
 src/Perl6/Grammar.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/Perl6/Grammar.pm b/src/Perl6/Grammar.pm
index bbda4df..cd7d389 100644
--- a/src/Perl6/Grammar.pm
+++ b/src/Perl6/Grammar.pm
@@ -1495,7 +1495,7 @@ token circumfix:sym<[ ]> { '[' <semilist> ']' }
 token circumfix:sym<ang> {
     <?[<]>
     [ <?before '<STDIN>' > <.obs('<STDIN>', '$*IN.lines')> ]?
-    [ <?before '<>' > <.obs('<>', 'lines() or ()')> ]?
+    [ <?before '<>' > <.obs('<>', 'lines() to read input, (\'\') to represent a null string or () to represent an empty list')> ]?
     <quote_EXPR: ':q', ':w'>
 }
 token circumfix:sym<« »> { <?[«]>  <quote_EXPR: ':qq', ':w'> }
-- 
1.7.0.4

@p6rt
Copy link
Author

p6rt commented May 2, 2011

@moritz - Status changed from 'new' to 'resolved'

@p6rt p6rt closed this as completed May 2, 2011
@p6rt p6rt added the patch label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant