Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0006649 [Squeak] Compiler minor N/A 09-02-07 01:24 09-03-07 22:05
Reporter wiz View Status public  
Assigned To
Priority normal Resolution open  
Status new   Product Version
Summary 0006649: [RFE] [Code] Request ";;" (double semi) be added to language as a "then" sequencer.
Description After extensive discussion on the list in July and August 2007
(look at the thread starting with the word pipe)
started by

Fabio Filasieno fabio.filasieno at gmail.com

and with parser code for implementing the sequencer from

Vassili Bykov smalltalkbigot at gmail.com

Its time to request action.

The general consensus of those wanting the feature was that
';;' was a good and acceptable form for it.

And with the notion* that having the feature will facilitate making code more readable. I am recommending that it be included in the a release of squeak and be added to our repetoire of syntaxtic sugaring.





Additional Information There are often times when you would wish to follow a key word message with another message. The usual programming proceedure is to go back select the message; surrounding with parens and add the next message.

Having a double semi sequencer for "and then ...." or "and next..." would make some things easier to read when reviewing the code.

I find this the telling argument though I also look forward to the fact it would make some sequences easier to write.

The more I've thought on it the more I like the idea. So I would like to see it put into action.

Yours in curiosity and service, --Jerome Peace
Attached Files  PipeWithDoubleSemi.1.cs [^] (2,779 bytes) 09-02-07 01:28

- Relationships

- Notes
(0011084 - 357 - 416 - 416 - 416 - 416 - 416)
wiz
09-02-07 01:32

Uploaded PipeWithDoubleSemi.1.cs for evaluation.

I do not consider this a fix because it includes an alternate form ":>" as well as ";;" and only one form of the sequencer should be commited too.

Also there need to be tests which are not here. That is a job for another day. And maybe I can talk Vassili into following thru on his code.

Cheers -Jer
 
(0011087 - 254 - 290 - 290 - 290 - 290 - 290)
mikevdg
09-02-07 22:55

Please do not include this in the main image. It will encourage code that is not ANSI-compliant and add yet more bloat to the compiler.

Instead, make this available via other means:

- An image for download.
- A compiler package, or
- A changeset.
 
(0011090 - 749 - 855 - 855 - 855 - 855 - 855)
wiz
09-03-07 22:05

Hi mikevdg,

First it needs to exist as a fix and tests. Then where it exists will have to be decided.

An Alpha release image IMO is a good place for it to appear first. It also should be part of the mainstream or there is not much reason for it to exist.

In any event the reports purpose is to prepare it for inclusion. Where and when it gets included depends on the taste of the release teams. I hope for the best.

As far as being in the current standard well...

"The difference between genius and idocy is one of time. In the end no one listens to idocy, in the beginning no one listens to genius."

Good ideas are controversial and need time to be accepted. (or not).

Cheers,

Yours in curiosity and service, --Jerome Peace
 

- Issue History
Date Modified Username Field Change
09-02-07 01:24 wiz New Issue
09-02-07 01:28 wiz File Added: PipeWithDoubleSemi.1.cs
09-02-07 01:32 wiz Note Added: 0011084
09-02-07 22:55 mikevdg Note Added: 0011087
09-03-07 22:05 wiz Note Added: 0011090


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
42 total queries executed.
31 unique queries executed.
Powered by Mantis Bugtracker