Re: Language Discussion Summaries

2003-02-03 Thread Piers Cawley
Allison Randal <[EMAIL PROTECTED]> writes: > Miko O'Sullivan wrote: >> >> Therefore, I propose that members of the language list provide summaries >> of the discussions in the group. Each summary describes a proposed idea >> feature of the language, then summarizes the list's feelings on the ide

Re: newline as statement terminator

2003-02-03 Thread Deborah Ariel Pickett
> print "---" # must read the next line to > # figure out if new line is statement terminator or not >if $condition"; Yes, let's expand that example, and assume the "semicolons optional where obvious" proposal. sub foo { print "abcde" if $condition { print "fghij" } }

Re: newline as statement terminator

2003-02-03 Thread attriel
>> I don't mean to be abrupt here, especially seeing as how this list has >> been so patient with some of my ideas but... PLEASE NO. The rules you >> suggest for keeping track of when a semicolon is required sound more >> confusing than the simple rule of "end of statement, put semicolon". > > As

Re: newline as statement terminator

2003-02-03 Thread Stéphane Payrard
On Mon, Feb 03, 2003 at 08:19:29PM -0500, Miko O'Sullivan wrote: > On Tue, 4 Feb 2003, [iso-8859-1] Stéphane Payrard wrote: > > > In the tradition of Perl concision, I would like newline to be a > > statement terminator everywhere it can: that is when > >a) the parser expects an operator >

Re: newline as statement terminator

2003-02-03 Thread Allison Randal
Miko O'Sullivan wrote: > > NOTE TO ALLISON RANDAL: in your face-to-face meetings next week, please > make sure that "Larry Wall" isn't really Guido van Rossum with a fake > mustache. Righto. No reptiles, only jewels and birds. And possibly the occasional snark. ;) Allison

Re: newline as statement terminator

2003-02-03 Thread Stéphane Payrard
On Mon, Feb 03, 2003 at 06:11:23PM -0700, Luke Palmer wrote: [snip] > > See, this is the main, unPerlish thing you're doing. You're enforcing > particular styles upon people, something Perl is proud of *not* doing. > > Let's not forget the often occurence of: > > $fh = open 'foobar' >

Re: Language Discussion Summaries

2003-02-03 Thread Allison Randal
Miko O'Sullivan wrote: > > Therefore, I propose that members of the language list provide summaries > of the discussions in the group. Each summary describes a proposed idea > feature of the language, then summarizes the list's feelings on the idea. > Different opinions will be presented. The su

Re: newline as statement terminator

2003-02-03 Thread Deborah Ariel Pickett
> It would be trivial with a grammar munge to implement this (heck, I > did it with a source filter in Perl 5). Surely CPAN6 (6PAN/CP6AN/??) > will come out with one of these right off the bat, so you could do: > > use Grammar::ImplicitSemicolon; > > Or something like that, and be done with

Re: newline as statement terminator

2003-02-03 Thread Miko O'Sullivan
On Tue, 4 Feb 2003, [iso-8859-1] Stéphane Payrard wrote: > In the tradition of Perl concision, I would like newline to be a > statement terminator everywhere it can: that is when >a) the parser expects an operator > _and_ b) we are not in the middle of a parenthesised expression. I don

Re: newline as statement terminator

2003-02-03 Thread Stéphane Payrard
> > Multiline atomic statements just have to be broken at the right > place to avoid to break them: Sorry about my English. Let me reformulate. When folding an atomic statement, it becomes two statements or its meaning is unchanged depending if an operand is expected or not at the position of th

Re: newline as statement terminator

2003-02-03 Thread Luke Palmer
> Date: Tue, 4 Feb 2003 01:57:00 +0100 > From: =?iso-8859-1?Q?St=E9phane?= Payrard <[EMAIL PROTECTED]> > > In the tradition of Perl concision, I would like newline to be a > statement terminator everywhere it can: that is when >a) the parser expects an operator > _and_ b) we are not in

newline as statement terminator

2003-02-03 Thread Stéphane Payrard
In the tradition of Perl concision, I would like newline to be a statement terminator everywhere it can: that is when a) the parser expects an operator _and_ b) we are not in the middle of a parenthesised expression. Accessorily, it would also help people to switch back and forth betwee

Re: Shortcut: ?=

2003-02-03 Thread Deborah Ariel Pickett
> > I guess what I'm saying is that someone needs to provide a real-world, > > non-contrived, example showing ??= in use. > Fair enough. Real World, Non-Contrived: In all databases that I've ever > worked with there are exactly two possible values for a boolean database > field. Those two values

Re: Dan's status

2003-02-03 Thread Leopold Toetsch
Dan Sugalski wrote: Tomorrow (tuesday) I'm heading out to Seabastapol CA for a week-long perl 6 design get-together thingie. When you are on it, please - again - have a look at our current string behaviour. Keywords are: string_set, string header reusing, 50 % more performance with life cy

AW: Language Discussion Summaries

2003-02-03 Thread Murat Ünalan
Thats a great idea. Murat

Re: Objects, methods, attributes, properties, and other related frobnitzes

2003-02-03 Thread Jerome Quelin
Dan Sugalski wrote: > At 8:39 PM +0100 2/3/03, Jerome Quelin wrote: > >Dan Sugalski wrote: > >> *) Property: A named thing attached to an object. Properties are > >> global to the object and public--i.e. there's no implicit hiding, > >> namespaces, or whatnot. There can be only one foo property

Re: Objects, methods, attributes, properties, and other related frobnitzes

2003-02-03 Thread Nicholas Clark
On Mon, Feb 03, 2003 at 12:15:32PM -0500, Dan Sugalski wrote: > *) Method: Some sort of action that an object can do. Methods are > global and public--only one foo method for an object. Methods may be > inherited from parent classes, or redefined in a particular class. > Redefined methods hide

Re: Objects, methods, attributes, properties, and other related frobnitzes

2003-02-03 Thread Dan Sugalski
At 8:48 PM +0100 2/3/03, Jerome Quelin wrote: Dan Sugalski wrote: At 8:39 PM +0100 2/3/03, Jerome Quelin wrote: >Dan Sugalski wrote: >> *) Property: A named thing attached to an object. Properties are >> global to the object and public--i.e. there's no implicit hiding, >> namespaces, or w

Re: [RfD] parrot run loops

2003-02-03 Thread Leopold Toetsch
Dan Sugalski wrote: At 10:07 AM +0100 1/30/03, Leopold Toetsch wrote: Changing the addressing scheme to opcode offsets relative to code The big problem with this is you're increasing non-local call performance for normal running. I don't think this is a good idea--while you'll save maybe 50

Re: Objects, methods, attributes, properties, and other related frobnitzes

2003-02-03 Thread Dan Sugalski
At 8:39 PM +0100 2/3/03, Jerome Quelin wrote: Dan Sugalski wrote: *) Property: A named thing attached to an object. Properties are global to the object and public--i.e. there's no implicit hiding, namespaces, or whatnot. There can be only one foo property on an object, for example [...] Th

Language Discussion Summaries

2003-02-03 Thread Miko O'Sullivan
SUMMARY Members of the Perl6 Language list produce summaries discussions of proposed features of the Perl6 language. These summaries will improve the signal to noise ratio for Larry and his lieutenants as they try to keep up with feelings in the list. See http://www.idocs.com/perl6/ for the firs

Re: Sabbatical from the list

2003-02-03 Thread Allison Randal
Damian wrote: > This is just to let everybody know that I will be unsubscribing from > p6-lang for the foreseeable future, effective immediately. > > I deeply regret that I simply no longer have the time to cope with the > volume of messages being generated here. Unfortunately, the exigencies of

Re: Objects, methods, attributes, properties, and other related frobnitzes

2003-02-03 Thread Jerome Quelin
Dan Sugalski wrote: > *) Property: A named thing attached to an object. Properties are > global to the object and public--i.e. there's no implicit hiding, > namespaces, or whatnot. There can be only one foo property on an > object, for example [...] > The interpreter must handle class hierarchy stu

The 2004 performance challenge is on!

2003-02-03 Thread Dan Sugalski
Folks, I made a bet with Guido van Rossum that Parrot'd be faster at executing a pure python benchmark of some sort (to be determined) with the challenge details announced at OSCON 2003 and the results tried at OSCON 2004. If I lose, I owe Guido $10 and a round of beer for the zope/pythonlabs

Re: Objects, methods, attributes, properties, and other related frobnitzes

2003-02-03 Thread Dan Sugalski
At 6:25 PM + 2/3/03, Andy Wardley wrote: Dan Sugalski wrote much sense, including these gems: *) Method: Some sort of action that an object can do. Methods are global and public--only one foo method for an object. Methods may be inherited from parent classes, or redefined in a particular c

RE: Objects, methods, attributes, properties, and other related frobnitzes

2003-02-03 Thread Jonathan Sillito
> -Original Message- > From: Andy Wardley [mailto:[EMAIL PROTECTED]]On Behalf Of Andy Wardley > > Dan Sugalski wrote much sense, including these gems: > > *) Method: Some sort of action that an object can do. Methods are > > global and public--only one foo method for an object. Methods ma

Re: Objects, methods, attributes, properties, and other related frobnitzes

2003-02-03 Thread Andy Wardley
Dan Sugalski wrote much sense, including these gems: > *) Method: Some sort of action that an object can do. Methods are > global and public--only one foo method for an object. Methods may be > inherited from parent classes, or redefined in a particular class. > Redefined methods hide parent cla

Dan's status

2003-02-03 Thread Dan Sugalski
Okay, I figure it's time for a quick status report from me, since I've been missing from the list of late and it's been showing. (Leo's been doing grand things but at some point he's going to run out of old mistakes of mine and'll need new ones to work with :) Tomorrow (tuesday) I'm heading out

Objects, methods, attributes, properties, and other related frobnitzes

2003-02-03 Thread Dan Sugalski
Okay, just to get some stuff defined and the problem space sorted before I try and work on it: Definitions: *) Object: An opaque thingie with properties, attributes, and methods *) Property: A named thing attached to an object. Properties are global to the object and public--i.e.

Re: [RfD] parrot run loops

2003-02-03 Thread Dan Sugalski
At 10:07 AM +0100 1/30/03, Leopold Toetsch wrote: Changing the addressing scheme to opcode offsets relative to code start would simplify all kinds of (non local) control flow changes. As real world programs mostly consists of such subroutine calls, these would be simplified a lot (and would then n

native compile test results

2003-02-03 Thread Leopold Toetsch
The last 3 commits made native compiled PBCs (via pbc2c.pl) run a little bit better: Failed TestStat Wstat Total Fail Failed List of Failed --- t/op/hacks.t 1 256 31 33.33% 1 t/op/integer.t4 10

Re: Shortcut: ?=

2003-02-03 Thread Sean O'Rourke
Argh. Please disregard that last message as the ramblings of a pre-caffeinated mind. /s On Mon, 3 Feb 2003, Sean O'Rourke wrote: > On Mon, 3 Feb 2003, Dave Mitchell wrote: > > $var ??= 'succeeded' :: 'failed'; > > Aha! > > $var && 'succeeded' || 'failed'; > > Thank you, precedence. > > /s >

Re: Shortcut: ?=

2003-02-03 Thread Sean O'Rourke
On Mon, 3 Feb 2003, Dave Mitchell wrote: > $var ??= 'succeeded' :: 'failed'; Aha! $var && 'succeeded' || 'failed'; Thank you, precedence. /s

Re: Shortcut: ?=

2003-02-03 Thread Miko O'Sullivan
On Mon, 3 Feb 2003, Deborah Ariel Pickett wrote: > I guess what I'm saying is that someone needs to provide a real-world, > non-contrived, example showing ??= in use. Fair enough. Real World, Non-Contrived: In all databases that I've ever worked with there are exactly two possible values for a b

Re: XML output of parse tree for Jako

2003-02-03 Thread gregor
James -- I'm open to other ideas. I've toyed with learning DAML and RDF for some ontology stuff I'm interested in, but so far I haven't had the mental "click" that would make me feel comfortable working with them. I do have a good comfort level with XML in general. I am pondering the sorts of tr

Re: Shortcut: ?=

2003-02-03 Thread Dave Mitchell
On Mon, Feb 03, 2003 at 06:25:09AM -0800, Austin Hastings wrote: > The only time this doesn't change type (arguably a bad thing in its own > right) is when you're doing boolean ops. And for those, there exist > boolean operators. Changing type is a very Perlish thing to do. > > How 'bout a shortc

Re: Shortcut: ?=

2003-02-03 Thread Austin Hastings
--- Miko O'Sullivan <[EMAIL PROTECTED]> wrote: > SUMMARY > > C<$var ?= $x : $y> as a shortcut for C<$var = $var ? $x : $y>. > > > DETAILS > > We have ||=, +=, -=, etc. These shortcuts (I'm sure there's some > fancy > linguistic term for them) save us a few keystrokes and clean up the > code.

Re: XML output of parse tree for Jako

2003-02-03 Thread James Michael DuPont
--- [EMAIL PROTECTED] wrote: > I just committed some changes to the Jako compiler that add a '-x' > switch. Using jakoc -x will cause the compiler to emit the parse tree > as XML (via SAX events sent to XML::Handler::YAWriter). > Sounds interesting. I have to look into this, i have dropped xml i

XML output of parse tree for Jako

2003-02-03 Thread gregor
I just committed some changes to the Jako compiler that add a '-x' switch. Using jakoc -x will cause the compiler to emit the parse tree as XML (via SAX events sent to XML::Handler::YAWriter). It still has some worts, but it didn't die when I turned it loose on the Jako examples. There are a few

[perl #20666] Assemble.pl Reports Incorrect Line Numbers after Removal of Macros

2003-02-03 Thread via RT
# New Ticket Created by Joe Yates # Please include the string: [perl #20666] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=20666 > Line numbers reported by Assemble.pl are array indices AFTER the removal of macros. This