Re: Rindolf, Perl 6 and Wish lists
by dragonchild (Archbishop) on Feb 14, 2002 at 15:57 UTC
|
Yes, syntax will change. Yes, we as programmers will have to get used to potentially conflicting syntax between Perl 5.x and Perl 6.x. Boo-hoo for us.
I personally feel that, having programmed in Perl 4 and Perl 5, change as led by the Perl community is good! Who here will complain about references? Yet, I remember a ton of complaints re: references when they were introduced. Yet, that was the one thing that catapulted Perl from an obscure scripting language into an enterprise-level programming language.
These things are why I, regardless of syntactic sugar, will gladly use Perl 6:
- Clean throw-catch syntax. eval-die just doesn't do it for me.
- One operator, one operation. We want that out of our functions, why not out of our language?
- The hyper-operators. They will make statements clean!
- Attributes and prototypes. Used correctly and consistently, they will make code more maintainable and proveably correct. This can only be a good thing.
- Parrot. Just the name is cool! The fact that I'll be able to embed opcodes wherever I want to is extremely powerful. Now, we get away from needing to go to C just to get our hands on the guts.
And, this is just off the top of my head, given four Apocalypses, knowing the language is over a year away. I haven't read a single Apocalypse where I felt an error was being made. I don't expect to, either.
------ We are the carpenters and bricklayers of the Information Age. Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement. | [reply] |
Re: Rindolf, Perl 6 and Wish lists
by grinder (Bishop) on Feb 14, 2002 at 22:10 UTC
|
As I read through these points, all I could think of what "what a peculiar collection of features." I daresay my own ideas for extending Perl 5 (keeping Perl 5 Perl 5?) would take it off in another wild tangent. But some of these points seem... worng to me. What a mishmash of ideas. Let's have a look...
- Dot or arrow? I am getting used to the dot.
- Classes. Huh?
- on_destroy(). If you need it, you need it bad, I suppose. But the name should be UPPERCASED.
- Globs will be replaced by return values. I can't parse that statement in any sensible way.
- local has its uses, in terms of overlaying a temporary value on a variable. When you need it, you need it bad.
- I have never had a hash mishap with , and/or =>. Again, I don't see the point.
- Proper tail recursion. Because it doesn't work correctly at the moment? Maybe so, but as I never use recursion except when playing I don't see this as a burning issue.
- Factories. Again, maybe I'm missing something. I suppose I should reread my Gang of Four, but this doesn't do anything for me.
- x operator? What, that one must employ the correct use of space? Well ok, but it's not something I lose sleep over.
- s/scalar/count/. That's an entirely gratuitous and subjective change.
hmmm. When you look at it that way, it doesn't seem like such a big deal. Thanks for posting the information. At least I know now I can safely ignore Rindolf :) As far as I can tell, most of these issues are just stylistic, and so the idea is just to bend Perl to be more suited to writing a particular sort of Perl.
<update> And now that I've read the use.perl.org thread I know I can safely dismiss the whole idea as the work of a nutcase. Sorry, but the guy is really off the wall.
</update>
As for what directions I'd like to see Perl 5 taking, I wish things like this would work:
-
my @arr = @ARGV || (1, 4, 9, 16);
# || forces scalar context
-
my @args = ( 'p455w0rD', '5a1T' );
my $crypt = crypt( @args );
# crypt is prototyped as sub ($$) crypt;
Those are two issues that bit me yesterday (hi japhy!). Although AFAIK these problems are emminently unfixeable because of other constraints.
print@_{sort keys %_},$/if%_=split//,'= & *a?b:e\f/h^h!j+n,o@o;r$s-t%t#u'
| [reply] [d/l] [select] |
|
|
And now that I've read the use.perl.org thread I know I can safely dismiss the whole idea as the work of a nutcase. Sorry, but the guy is really off the wall.
Thank you.
You have articulated my thoughts so much better than I could.
When I read the thread all I could think is "This guy wants to remove everything he doesn't understand, and replace them with other things that he doesnt understand."
In my experience the majority of non CS professors that go around harping about tail recursion dont have a clue what they are on about...
Yves / DeMerphq
--
When to use Prototypes?
| [reply] |
|
|
I may be a little dense (or I just didn't have the proper edumication) ... What's a good definition of tail-recursion? When is it used?
------ We are the carpenters and bricklayers of the Information Age. Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
| [reply] |
|
|
|
|
| [reply] |
|
|
| [reply] |
Re: Rindolf, Perl 6 and Wish lists
by belg4mit (Prior) on Feb 14, 2002 at 15:41 UTC
|
I've not hidden that I am definitely not enthralled
by Perl6 thus far. I too do not wish to see
my . and -> mangled.
I'm also not especially pleased on the insistence
that all filehandles will be objects; I know
why people want it, but that doesn't mean I agree.
I also am not a big fan of these objects posessing
the punctuation variables as attributes or methods.
Generaly I could do without the whole OO and typing trend.
Thus far, these are the main things.
I'll probably never use many of the new enhancements;
just as there are many features of Perl5 I do not use.
Sigils will take awhile getting used to,
now that I no longer try to write things the intuitive way.
I do like the idea of taking XS out of the picture
though.
I plan on typing use Perl5; a fair bit.
Yes, I realize the Perl 6 engine will support Perl 5
syntax, however it is my understanding that this will
lockout access to some of the new features. So this
module would be a source-filter masking some of
the less-desirable changes.
--
perl -pe "s/\b;([st])/'\1/mg"
| [reply] |
Re: Rindolf, Perl 6 and Wish lists
by ignatz (Vicar) on Feb 14, 2002 at 16:26 UTC
|
Rindolf??? And you are??? And you've done???
I can't wait. I couldn't imagine better people working on it... the way Larry's been handling things... wow! The work on Parrot makes me want to go back to brush up on my assembly, and I HATE assembly.
()-()
\"/
` | [reply] |