From: Tim C. <tf...@le...> - 2003-09-20 05:34:46
|
Matt Casey <mr...@Le...> wrote: > Ok, a few reactions: > Can you declare variables, if so, how? For example if I have a global > 'x', the only way I can override it in a function is to have x be the > name of a parameter. Not true; take my example below: function dostuff(y, z) x = 5 print x * 5 # Prints 25 end function x = 10 dostuff(5, 10) Or were you saying that that is the way you'd like it to be? Not totally sure here. > There should be a warning if you ever read an uninitialized variable > before setting it. Okay, sure. > Some operators that I think you implied are included: ++ and --, <, >, > <=, >=, != or <>. Yeah, I forgot about them and I do want them. > Since there is no type for variables, concatenation should be an > operator (either '.' or '&', I think) I support '.', personally. > Strings are built with "", I assume. Good assumption. > Is there any support for arrays or vectors of any sort? Interesting question: I think I want vectors, but I'm not sure how to impliment it yet so I'm going to plead the 5th for the moment. I'll get back to it later. > How are comments made? Comments are preceded with # (is this okay?) and can be at the start of a line or at the end of one. > Also, I think it should be possible to attach a string to each > function describing it, so that in the console, you could do 'lsfunc' > or something, and get: > function1() - Does xyz > function2() - Does abc > I think it would be a neat thing to add (and optional, of course). Yeah, sure, I like this well enough.. maybe it looks for the line of comments immedietly preceding the function definition or something, but we can work that out. > We need to figure out how we're going to do events or callbacks, > because there might be some naming conflicts between functions and > variables. Well, I have a good idea on how I want to impliment this, but I'm really too tired to do it now; I'll write an e-mail about -that- tomorrow too. -- Tim Cunningham "I'm not claiming to be deep, I'm claiming to do it for fun." - Linus Torvalds |