# New Ticket Created by  Benjamin Goldberg 
# Please include the string:  [perl #131656]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=131656 >


This is a request for a new syntactic feature for perl6, a keyword named 
'unlisp' or 'unbrace'.

This new keyword would act almost exactly like a '{', with the difference that 
when a matching '}' is found (or the end of file is reached),  an extra '}' is 
inserted.  If more than one 'unlisp' keywords occur in a given scope, then the 
end of scope acts as if there were a matching number of '}''s present.

This keyword would serve a similar purpose to 'unit', but would be much more 
generic.

One way that this could be used, where 'unit' would not work, would be 
something like:

unit package Foo;
my package EXPORT::DEFAULT unlisp;
our sub bar {...}; # gets exported.
my sub baz {...}; # doesn't get exported.

At present, 'unit' doesn't combine with 'my'.

It would be even cooler if 'unlisp', instead of acting like a '{' itself, were 
required to be placed at the beginning of a statement, and transformed the next 
appearing ';' into a '{' ... this would make it more like the current 'unit' 
keyword, but this might be harder to parse.

Reply via email to