To 'with' or not to 'with': how is the question ?
Manuel Gutierrez Algaba
thor at localhost.localdomain
Fri Sep 1 16:11:10 EDT 2000
On Fri, 1 Sep 2000 Jason Cunliffe <jasonic at nomadicsltd.com> wrote:
>Hello
>
>In ActionScript, JavaScript and VBScript, there is the 'with' operator
>torefer to the same piece of code many times..
>
>For example in VBScript:
>
>Set evilcommondocument = CreateObject("Word.Document")
>
>With lovelyobject
> .AutoHyphenation = True
> .PrintPreview
> evilcommondocument.Close
>End With
>
>Set evilcommondocument = Nothing
>
>This works for longer more nested objects.properties lumps also, where it is
>a very nice feature I find.
Do you mean this :
With WhyvisualShit
.nasty= True
.sucking= True
With extendedAttrb
.encourages_unstructuration = True
.leaveit
.ask_your_mother
end with
if .is_unreadable
.throw_it_over_board
.end if
.goes_against_OO
end with
?
This seems a good idea in origin (from Pascal), exagerated so
much that spoils any traces of programming.
Post it to Comp.lang.perl, they'll probably add to their language.
---
MGA
More information about the Python-list
mailing list