From: Vincenzo a. N. N. <vin...@ya...> - 2004-06-26 20:17:21
|
On Friday 25 June 2004 11:40, Daan Leijen wrote: > 1) I added "creation" attributes: that are attributes that are > treated specially when given in the initial property list. This way, > the window can immediately be created with the correct size. The > downside of "creation" attributes is that it creates a distinction > between: > > =A0 =A0 w <- widget [...] > > and > > =A0 =A0 w <- widget [] > =A0 =A0 set w [...] Why is it a problem? It should be obvious to an user that a property=20 could have an initialization value with a default setting. If you are=20 in the IO monad it should be clear enough that the second form first=20 creates the widget using default settings and then sets the properties;=20 the only alternative I see would be an (infamous) GUI monad which=20 people seem to dislike: even if you could hide the widget and show it=20 on demand, there might be other things unrelated to graphics that=20 behave differently if done during initialization or after, do you=20 agree? Vincenzo |