Re: Is Perl 6 too late?

2007-05-14 Thread herbert breunung
And to attract contributors, you have to have a convincing vision. right please make a decision for you to program in a language that has fame or one that you like most. as moritz said the special variables are now better sorted and some changes you write about are too far from perls basic

Re: Is Perl 6 too late?

2007-05-14 Thread Thomas Wittek
Moritz Lenz schrieb: What makes Perl hard to read is the excessive use of special characters (/\W/). I disagree: The make it look ugly, but not hard to read. Even if it's only ugly: To what advantage? I don't think ugliness is a good characteristic of a programming language. Global

Re: Is Perl 6 too late?

2007-05-14 Thread Andy Armstrong
On 14 May 2007, at 11:51, Thomas Wittek wrote: I also can't remember that I ever named a variable like a reserved word or operator. And even if I could, I'd consider it to be bad style. How did you know which reserved words and operators were going to be introduced in the future so you

Re: Is Perl 6 too late?

2007-05-14 Thread Thomas Wittek
chromatic wrote: Global variables with cryptic names, that no beginner can make any sense of by reading it. And after not working with $ for some months I can't remember it either, although I've got quite some Perl experience. Most of those have gone away. Oh, some someone must agree that

Re: Is Perl 6 too late?

2007-05-14 Thread Thomas Wittek
Andy Armstrong schrieb: On 14 May 2007, at 11:51, Thomas Wittek wrote: I also can't remember that I ever named a variable like a reserved word or operator. And even if I could, I'd consider it to be bad style. How did you know which reserved words and operators were going to be introduced in

Re: Is Perl 6 too late?

2007-05-14 Thread Andy Armstrong
On 14 May 2007, at 12:31, Thomas Wittek wrote: How did C, C#, Java, Ruby, Python, Lua, JavaScript, Visual Basic, etc. know? They didn't. If there is a new release, you always have to check if your code still runs. I think that may be the point I'm making. -- Andy Armstrong, hexten.net

Re: Is Perl 6 too late?

2007-05-14 Thread Thomas Wittek
herbert breunung schrieb: please make a decision for you to program in a language [..] [..] try python. [..] Oh, just because I think that they've some smart design decisions? Why not steal them? BTW: Why do so much people say go away if you don't like it instead of being open for ideas and

Re: Is Perl 6 too late?

2007-05-14 Thread Mark J. Reed
I'm so tired of hearing how unreadable Perl is. It's specious. But if so many people think it... Uh-uh. Instinctive reactions can be both universal and incorrect...and I think that's what this is. At least, among those who have even bothered to look into Perl instead of just repeating FUD.

Re: Is Perl 6 too late?

2007-05-14 Thread herbert breunung
herbert breunung schrieb: please make a decision for you to program in a language [..] [..] try python. [..] Oh, just because I think that they've some smart design decisions? Why not steal them? BTW: Why do so much people say go away if you don't like it instead of being open for

Re: Is Perl 6 too late?

2007-05-14 Thread Thomas Wittek
Andy Armstrong schrieb: On 14 May 2007, at 12:31, Thomas Wittek wrote: How did C, C#, Java, Ruby, Python, Lua, JavaScript, Visual Basic, etc. know? They didn't. If there is a new release, you always have to check if your code still runs. I think that may be the point I'm making. Your

Re: Is Perl 6 too late?

2007-05-14 Thread John Macdonald
On Mon, May 14, 2007 at 02:36:10PM +0200, Thomas Wittek wrote: Andy Armstrong schrieb: On 14 May 2007, at 12:31, Thomas Wittek wrote: How did C, C#, Java, Ruby, Python, Lua, JavaScript, Visual Basic, etc. know? They didn't. If there is a new release, you always have to check if your code

Re: Is Perl 6 too late?

2007-05-14 Thread chromatic
On Monday 14 May 2007 04:28:15 Thomas Wittek wrote: I'm not a friend of potential conflicts between built-in operators and my identifier names (and especially the conflicts between scalar, aggregate, type, and function names). As I partially wrote Moritz, I a) don't think that it's the

Re: Is Perl 6 too late?

2007-05-14 Thread chromatic
On Monday 14 May 2007 04:35:19 Thomas Wittek wrote: BTW: Why do so much people say go away if you don't like it instead of being open for ideas and discussing them from a neutral point of view? Perhaps you're not a native English speaker, but running into the room and saying Perl 6 doesn't

Re: Is Perl 6 too late?

2007-05-14 Thread Moritz Lenz
Thomas Wittek wrote: Moritz Lenz schrieb: What makes Perl hard to read is the excessive use of special characters (/\W/). I disagree: The make it look ugly, but not hard to read. Even if it's only ugly: To what advantage? I don't think ugliness is a good characteristic of a programming

Re: Is Perl 6 too late?

2007-05-14 Thread Moritz Lenz
Moritz Lenz wrote: Thomas Wittek wrote: Moritz Lenz schrieb: I would also like semicolons to be optional. Most people don't ;-). Oh, really? Source? :) I paraphrased Larry Wall. Iirc it was everybody wants the semicolon or something - correct me if I'm wrong. sorry, masak++ pointed out

Re: Is Perl 6 too late?

2007-05-14 Thread Frank Wiles
On Mon, 14 May 2007 12:51:53 +0200 Thomas Wittek [EMAIL PROTECTED] wrote: Reason? I still haven't seen a good justification for sigils. This may not qualify as a good justification, but it is one I've discussed with others and rings true for many. Take a look at actual code written

[svn:perl6-synopsis] r14390 - doc/trunk/design/syn

2007-05-14 Thread larry
Author: larry Date: Mon May 14 10:13:16 2007 New Revision: 14390 Modified: doc/trunk/design/syn/S02.pod doc/trunk/design/syn/S06.pod doc/trunk/design/syn/S12.pod Log: coercion type renamed from returns to as to avoid confusion with of type. ambiguity in block-end parsing noted by rhr++

Re: Is Perl 6 too late?

2007-05-14 Thread Gabor Szabo
On 5/14/07, John Macdonald [EMAIL PROTECTED] wrote: Removing the sigil on a function call (it used to always be written sub(args...)) did, I think, lead to the difficulty in perl5 where it became difficult to add new keyword operators to the language - because they could conflict with

Re: Is Perl 6 too late?

2007-05-14 Thread Tibor Foeldes
OK! Be concrete ! :-) ( Hart wie Beton !) As Ruby and Python are getting more and more attraction [1][2] I think they do something right, that Perl doesn't. What I think where both (especially Python) do better is in readable code. What makes Perl hard to read is the excessive use of

Re: Is Perl 6 too late?

2007-05-14 Thread Ryan Richter
On Mon, May 14, 2007 at 20:41:35 +0300, Gabor Szabo wrote: On 5/14/07, John Macdonald [EMAIL PROTECTED] wrote: Removing the sigil on a function call (it used to always be written sub(args...)) did, I think, lead to the difficulty in perl5 where it became difficult to add new keyword

Re: Is Perl 6 too late?

2007-05-14 Thread Juerd Waalboer
Thomas Wittek skribis 2007-05-14 0:42 (+0200): excessive use of special characters (/\W/). This seems to be I don't like regexes. Ignoring for now that Perl 6 regexes will be more verbose and thus easier to read for someone without much prior exposure to them, what would you suggest as an

Re: Is Perl 6 too late?

2007-05-14 Thread Larry Wall
On Mon, May 14, 2007 at 02:21:47PM -0400, Ryan Richter wrote: : In Perl 6, the sigil is used to distinguish between : : foo bar : : which calls bar and passes the return value to foo, and : : foo bar : : which passes bar as a Code object to foo. In other words, the sigil is consistently a

explicit line termination with ;: why?

2007-05-14 Thread gabriele renzi
Hi everyone, I don't want to argue about the design of perl6[1], I just wonder: why the semicolon is still needed in the end of lines in perl6? I can think of different reasons (history, readability, easier parsing of multiline statements, force people to write one-line functions to avoid

Re: explicit line termination with ;: why?

2007-05-14 Thread Andrew Shitov
I don't want to argue about the design of perl6[1], I just wonder: why the semicolon is still needed in the end of lines in perl6? JavaScript allows to omit semicolumn. In lecture at Yahoo's YUI Theatre one of JS's gurus talked about how it is organized in JavaScript parser. If the line of

Re[2]: explicit line termination with ;: why?

2007-05-14 Thread Andrew Shitov
JavaScript allows to omit semicolumn. Sorry, s/lumn/lon/. By the way, Perl also ignors semicolumn :-) -- Andrew Shitov __ [EMAIL PROTECTED] | http://www.shitov.ru

Re: explicit line termination with ;: why?

2007-05-14 Thread Larry Wall
On Mon, May 14, 2007 at 07:05:01PM +0200, gabriele renzi wrote: : Hi everyone, : : I don't want to argue about the design of perl6[1], I just wonder: why : the semicolon is still needed in the end of lines in perl6? : : I can think of different reasons (history, readability, easier parsing :

Re: Is Perl 6 too late?

2007-05-14 Thread Thomas Wittek
Frank Wiles schrieb: Take a look at actual code written in other languages and you'll find many variable names that end in things like _ary, _array, _dict, _list, etc. Actually I've not seen that often. Where I've seen it frequently is in Visual Basic and Delphi/Pascal. I hated it too. But I

Re: Is Perl 6 too late?

2007-05-14 Thread Thomas Wittek
chromatic wrote: theproblemlinguisticallyspeakingisthatsometimes [snipped] I can't remember that I said that you shouldn't separate your expressions (by punctation/whitspaces), $.but! (*adding$ %*characters _+that^# $might) @#not_ !#be() !necessary_ *#$doesn't! *(make) [EMAIL PROTECTED] =_easier

Re: explicit line termination with ;: why?

2007-05-14 Thread Aankhen
On 5/14/07, Andrew Shitov [EMAIL PROTECTED] wrote: JavaScript allows to omit semicolumn. Speaking of JavaScript, any experienced JavaScript programmer will tell you that while semi-colons are in fact optional, you should always treat them as mandatory, to avoid subtle errors creeping into your

Re: Is Perl 6 too late?

2007-05-14 Thread Doug McNutt
At 11:43 -0700 5/14/07, Larry Wall wrote: In other words, the sigil is consistently a noun marker in Perl 6, even when a sigil is used on a verb. It would seem to me that a preprocessor, written in perl of course, could easily respond to DIMENSION noun AS double statements or whatever you like

Sigils by example (was: Re: Is Perl 6 too late?)

2007-05-14 Thread Juerd Waalboer
Thomas Wittek skribis 2007-05-14 22:20 (+0200): But I think that the name of an identifier (noun/verb, single/plural, the meaning of the word) already gives enough context to understand what type it is. So is user_id a variable or a type? How about substring or document? Is new a function, or

Re: Is Perl 6 too late?

2007-05-14 Thread Juerd Waalboer
Thomas Wittek skribis 2007-05-14 22:31 (+0200): $.but! (*adding$ %*characters _+that^# $might) @#not_ !#be() !necessary_ *#$doesn't! *(make) [EMAIL PROTECTED] =_easier Those characters are meaningless. The many symbols in Perl 6 have very distinct meanings, which makes them very powerful tools!

Re: explicit line termination with ;: why?

2007-05-14 Thread Jonathan Lang
gabriele renzi wrote: Hi everyone, I don't want to argue about the design of perl6, I just wonder: why the semicolon is still needed in the end of lines in perl6? It isn't - sometimes. S03 identifies a number of ways that an expression can be terminated: the semicolon (';'), a block-final

Re[2]: explicit line termination with ;: why?

2007-05-14 Thread Andrew Shitov
Aankhen wrote: Speaking of JavaScript, any experienced JavaScript programmer will tell you that while semi-colons are in fact optional, you should always treat them as mandatory, to avoid subtle errors creeping into your code. We should also note that the idea of omitting ';' is not as

Re: Sigils by example (was: Re: Is Perl 6 too late?)

2007-05-14 Thread Jonathan Lang
Good examples. Now could you provide some to explain to me why it's important to distinguish between '$', '@', '%', and ''? I ask because I've seen a lot of object-based code that has said stuff like '$container{$key}'; it seems that there's an assumption that $foo can be used as a list, a

Re: explicit line termination with ;: why?

2007-05-14 Thread Jonathan Lang
Jonathan Lang wrote: ^[3]: If this were included in the core, you might even reverse things so that ';' is defined in terms of postfix:. or infix:{'=='}, depending on the context; in this case, postfix:? would be defined in terms of postfix:., rather than postfix:;. In fact, the only thing

Re: Sigils by example (was: Re: Is Perl 6 too late?)

2007-05-14 Thread Mark J. Reed
On 5/14/07, Jonathan Lang [EMAIL PROTECTED] wrote: Good examples. Now could you provide some to explain to me why it's important to distinguish between '$', '@', '%', and ''? I ask because I've seen a lot of object-based code that has said stuff like '$container{$key}'; Well,

Re: Sigils by example

2007-05-14 Thread Thomas Wittek
Juerd Waalboer wrote: Thomas Wittek skribis 2007-05-14 22:20 (+0200): But I think that the name of an identifier (noun/verb, single/plural, the meaning of the word) already gives enough context to understand what type it is. [examples] You are right, I should have weakened this sentence by

Re: Is Perl 6 too late?

2007-05-14 Thread Austin Hastings
Thomas Wittek wrote: chromatic wrote: theproblemlinguisticallyspeakingisthatsometimes [snipped] I can't remember that I said that you shouldn't separate your expressions (by punctation/whitspaces), $.but! (*adding$ %*characters _+that^# $might) @#not_ !#be() !necessary_ *#$doesn't!

Re: Is Perl 6 too late?

2007-05-14 Thread Thomas Wittek
Juerd Waalboer schrieb: Thomas Wittek skribis 2007-05-14 0:42 (+0200): excessive use of special characters (/\W/). This seems to be I don't like regexes. Ignoring for now that Perl 6 regexes will be more verbose and thus easier to read for someone without much prior exposure to them, what

Re: explicit line termination with ;: why?

2007-05-14 Thread Daniel Hulme
On Mon, May 14, 2007 at 02:29:11PM -0700, Jonathan Lang wrote: 2. This brings up the possibility of custom-designed termination operators. cf. Semi::Semicolons. I think that being flexible enough that people can write packages like that is one of Perl 6's greatest strengths. Long may it

Re: Sigils by example

2007-05-14 Thread Juerd Waalboer
Thomas Wittek skribis 2007-05-15 0:48 (+0200): The Perl Way: $object.foo() calls the method called foo. $object.$foo() calls the method that is in the variable $foo. My way: someref = somemethod object.someref() Of course you could argue that you don't know in advance, if object has a

Re: explicit line termination with ;: why?

2007-05-14 Thread Thomas Wittek
Andrew Shitov: If the line of code is not ended with ';' the parser tries first to assume [..] Wouldn't that be unambigous? foo = 23 bar = \ 42 ? I think there would be no ambiguities and you only had to add additional syntax for the rare cases instead of the common cases. --

Re: Sigils by example (was: Re: Is Perl 6 too late?)

2007-05-14 Thread Juerd Waalboer
Jonathan Lang skribis 2007-05-14 14:52 (-0700): Good examples. Now could you provide some to explain to me why it's important to distinguish between '$', '@', '%', and ''? It's useful code self documentation, but not very important, in my opinion. If you have sigils, it makes sense to have

Re: Sigils by example

2007-05-14 Thread chromatic
On Monday 14 May 2007 15:48:24 Thomas Wittek wrote: But it should be no problem to put out a warning/error at runtime (or maybe even at compile time) when a variable name clashes with a method name. Do you always know all of the method names in your entire memory space at compile time? -- c

Re: Is Perl 6 too late?

2007-05-14 Thread Thomas Wittek
Austin Hastings: A similar trade-off exists with the statement terminating semicolon. In this case, it involves the number of statements per line: A language that terminates statements can ignore whitespace, allowing multiple statements per line and statements that span multiple lines.

Re: explicit line termination with ;: why?

2007-05-14 Thread John Macdonald
On Tue, May 15, 2007 at 01:22:48AM +0200, Thomas Wittek wrote: Andrew Shitov: If the line of code is not ended with ';' the parser tries first to assume [..] Wouldn't that be unambigous? foo = 23 bar = \ 42 ? I think there would be no ambiguities and you only had to add

Re: Is Perl 6 too late?

2007-05-14 Thread Juerd Waalboer
Thomas Wittek skribis 2007-05-15 1:03 (+0200): On the other hand, the overall structure of a program is often more obvious, exactly because so much more fits in one screenful. My suggestions won't have an impact on the expressiveness of Perl. Not so. Consider /@foo/, which is an

Re: Sigils by example

2007-05-14 Thread Thomas Wittek
Juerd Waalboer schrieb: Thomas Wittek skribis 2007-05-15 0:48 (+0200): The Perl Way: $object.foo() calls the method called foo. $object.$foo() calls the method that is in the variable $foo. My way: someref = somemethod object.someref() Of course you could argue that you don't know in

Re: Sigils by example (was: Re: Is Perl 6 too late?)

2007-05-14 Thread Jonathan Lang
Mark J. Reed wrote: Jonathan Lang wrote: Good examples. Now could you provide some to explain to me why it's important to distinguish between '$', '@', '%', and ''? I ask because I've seen a lot of object-based code that has said stuff like '$container{$key}'; Well, $container{$key} is

Re: Sigils by example

2007-05-14 Thread Juerd Waalboer
Thomas Wittek skribis 2007-05-15 1:52 (+0200): Would it be a good idea to call methods on objects, that never thought of this methods? Absolutely! Roles can be used for that too. -- korajn salutojn, juerd waalboer: perl hacker [EMAIL PROTECTED] http://juerd.nl/sig convolution: ict

variable type specific sigils (was Re: Sigils by example)

2007-05-14 Thread Darren Duncan
Speaking just for my own preferences, I very much like having sigils to differentiate variables from routines, that is, a $ prefix versus either or no prefix. However, I generally do *not* like the @ and % prefixes. They seem somewhat contrived so to cover very specific variable types while

Re: explicit line termination with ;: why?

2007-05-14 Thread Thomas Wittek
John Macdonald schrieb: It's also, in many cases, harder to edit - that's why a trailing comma in a list that is surrounded by parens, or a trailing semicolon in a block surrounded by braces, is easier to manage. Now that the list is surrounded by parens makes clear that it ends with the

Re: explicit line termination with ;: why?

2007-05-14 Thread Jonathan Lang
On 5/14/07, Daniel Hulme [EMAIL PROTECTED] wrote: On Mon, May 14, 2007 at 02:29:11PM -0700, Jonathan Lang wrote: 2. This brings up the possibility of custom-designed termination operators. cf. Semi::Semicolons. Close. I'm thinking added functionality for semicolon alternatives rather than

Re: Is Perl 6 too late?

2007-05-14 Thread Jonathan Scott Duff
On 5/14/07, Thomas Wittek [EMAIL PROTECTED] wrote: Moritz Lenz schrieb: What makes Perl hard to read is the excessive use of special characters (/\W/). I disagree: The make it look ugly, but not hard to read. Even if it's only ugly: To what advantage? I don't think ugliness is a good

Re: Is Perl 6 too late?

2007-05-14 Thread Tibor Foeldes
OK! Be concrete ! :-) ( Hart wie Beton !) As Ruby and Python are getting more and more attraction [1][2] I think they do something right, that Perl doesn't. What I think where both (especially Python) do better is in readable code. What makes Perl hard to read is the excessive use of

Re: explicit line termination with ;: why?

2007-05-14 Thread John Macdonald
On Tue, May 15, 2007 at 02:02:06AM +0200, Thomas Wittek wrote: John Macdonald schrieb: It's also, in many cases, harder to edit - that's why a trailing comma in a list that is surrounded by parens, or a trailing semicolon in a block surrounded by braces, is easier to manage. Now that

Re: Sigils by example

2007-05-14 Thread Larry Wall
Language design is hard. Let's go shopping! :-) Larry

Re: Is Perl 6 too late?

2007-05-14 Thread Garrett Cooper
Thomas Wittek wrote: Moritz Lenz schrieb: What makes Perl hard to read is the excessive use of special characters (/\W/). I disagree: The make it look ugly, but not hard to read. Even if it's only ugly: To what advantage? I don't think ugliness is a good characteristic of a programming