# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #62738]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=62738 >


<masak> TimToady: sometimes I'm unhappy about how restrictive the
'class Foo;' syntax is. the idea is very sound, to remove a level of
indentation that encompasses practically the whole file. but I can't
do 'class Foo is Bar;', because there's no way to put a use statement
before that statement. putting the 'is Bar;' statement on its own line
(after the use statement) feels inelegant in another way. the
class-semicolon syntax is both full of promise and a straitjacket
right now.
<TimToady> masak: yes, STD allows use before class Foo is Bar;
<TimToady> however it's not clear the p6 autorecognizer will work in that case
<TimToady> so you might have to start with 'use v6'
<masak> TimToady: I consider starting with 'use v6' good style anyway.
thanks for the good news. submitting rakudobug. :)

So, um, the bug is... that Rakudo currently doesn't allow 'use' before
'class Foo is Bar', whereas STD.pm does.

Reply via email to