Search code examples
rebolrebol3

Object vs Block


I'm building a model to display a UI using SDL2 on Rebol3.

So far, I'd like to do something like this:

gui: copy []
append gui context [style: 'h1 at: 10x30 text: "Hello World!" font: arial]

but should I use Object! when I only need a Block! like this:

gui: copy []
append/only gui reduce/no-set [style: 'h1 at: 10x30 text: "Hello World!" font: arial]

What's your opinion on this? What is best to use? Any other suggestion?


Solution

  • Why not dialect?

    [h1 10x30 "Hello World!" font arial]
    

    Internally I would store it as an object!, because it provides you with an easier manipulation.