Sunday, January 11, 2004, 9:20:51 PM, A wrote:

> Here's an example of OO code in C#:

>         p = new Panel ();
>         Button Cancel = new Button ();
>         Cancel.Text = "Cancel";
>         Cancel.DialogResult = DialogResult.Cancel;
>         Cancel.FlatStyle = FlatStyle.System;
>         p.Controls.Add (Cancel);
>         CancelButton = Cancel;
>         Button OK = new Button ();
>         OK.Text = "OK";
>         OK.DialogResult = DialogResult.OK;
>         OK.FlatStyle = FlatStyle.System;
>         p.Controls.Add (OK);

> The above creates a Panel control, and adds two buttons, one marked
> "Cancel", the other marked "OK". If it were expressed as a Rebol
> dialect, I'd use something like:

>     Panel [
>         Button/System "Cancel" 'Cancel
>         Button/System "OK 'OK
>         ]

> Which one would you prefer? :)

I wouldn't start with such kinda "peas and apples" comparisons unless
you discuss the various possibilities of REBOL and C#.

One could imagine even better REBOL dialects and even worse C# stuff.
(Why not go down to IL level in C#? That would look far more ugly, I'm
sure!) On the opposite, a bad REBOL dialect could look just as bad as
the C# code, whereas with XAML you could just write:

<Canvas ID="root" xmlns="http://schemas.microsoft.com/2003/xaml";>
   <Button>Cancel</Button>
   <Button>OK</Button>
</Canvas>

-- 
Best regards,
 Andreas

-- 
To unsubscribe from this list, just send an email to
[EMAIL PROTECTED] with unsubscribe as the subject.

Reply via email to