Re: [Hecl-devel] Any objections to a new release?
Brought to you by:
davidw
From: David W. <dav...@gm...> - 2009-08-19 09:51:02
|
> Wolfgang, have you coming back from your vacation? > I would like to ask and discuss about your MIDP 2.0 commands. He's mentioned that he's back, but quite busy - post away to the list. >> I have gone ahead and committed it, but do think it needs some >> modification or at least consideration of various elements. > Please go ahead, tear them apart and make it better. I'm in the process of doing that:-) >> * proc's with :LeadingColons - I don't really see the benefit. You >> know from the structure of Hecl what's a proc: it's always the first >> word in a group. With the :globalvars, it also leads to a few too >> many :'s around for my tastes:-) > > I choose the : prefix to make it doesn't collide with the examples. > First I use __ prefix but they seem so verbose, so I pick another one. I see... To tell the truth, since this is example code that people will potentially use to get started with their own projects, I would rather be a bit verbose, rather than 'convenient to edit on a phone'. >> * Hecl indentation is definitely 4 :-) > > I know, but on the phone 4 space is too much. > Maybe we could make the Canvas based editor and make this a non issue? > Any volunteer? Here's an idea: let's use tabs... hrm... those seem to be more than 4 spaces on my phone. So... that doesn't work. 4 isn't bad on my phone, but I suppose on devices with a bit less space it is not so good. However, I'd still like to go with readability. > Yeah, I'm just trying to test the Hecl limit. I was impressed with what you did in that direction, actually! >> alias /alert lcdui.alert > > In the long run I would like to make the default command short > and to the point, so we don't even need the alias. I think the idea was to avoid conflicts with things like list - lcdui.list. >> * Anonymous commands, which you use ':' for (are you a Forth fan?:-). >> That requires some more experimentation, but it's an interesting >> idea... > > Nah, just trying to pick a short command. > > Here's what I have in mind for Hecl 2.0: > > set form [form title: "Form Title"] > set name [text label: "Name:" text: "Your name here"] > $form append $name > set cmd [cmd label: Greet llabel: "Greeting"] > $form add $cmd { > showmsg "Hello [$name get text:]" > } > $form add [cmd label: Exit llabel: "Exit App"] { > midlet.exit > } > $form show I like it - it actually looks a little bit more like the midp1.0 code I did:-) Did you have a look at that? -- David N. Welton http://www.welton.it/davidw/ http://www.dedasys.com/ Sent from Padua, Veneto, Italy |