Hey all,<br><br>I&#39;m going to get on a soapbox here.  Sorry in advance for sounding like a hot air bag.<br><br>&lt;soapbox&gt;<br><br>It&#39;s hard to change the C-like nature of Chuck from the grammar side.  And there are a lot of reasons not to attempt to change the grammar.  Speed, ease of learning, etc.<br>
<br>Now, some attempts have been made to bring a higher-level of programming to Chuck, most notably in Michael Heuer&#39;s LiCK library, which I encourage everyone to take a look at.  <br><br><a href="http://github.com/heuermh/lick">http://github.com/heuermh/lick</a><br>
<br>You have Lists here, ArrayLists, functors, which allow for a verbose kind of functional programming, etc.  It&#39;s hard to approach at the moment, but if you use it, you might forget you&#39;re programming Chuck.<br>
<br>I think it&#39;s important to stay within the confines that our dev&#39;s have set out for Chuck.  I think it&#39;s important to keep Chuck lean, fast, and easy to learn (i.e. C-like).  But it&#39;s also important for Chuck to allow the kind of thing that Michael&#39;s trying to build--because it&#39;s more like Ruby, Python, the nice parts of Java 6, Haskell, etc. -- all those things we want out of a good scripting language.<br>
<br>Points:<br><br>It would be great if it was easier to approach LiCK (and other libraries).  Only documentation can help that.  There is none.  It&#39;s hard to make.  Therefore, we need a system to generate documentation.<br>
<br>It would be great if LiCK (and other libraries) were easier to use.  We need to be able to import them.  Chuck needs a proper preprocessor, an import system, something.  Graham Coleman wrote a Chuck preprocessor/shell in Perl, which I&#39;ve used in the past.  It&#39;s really a nice thing to have.<br>
<br>It would be great is LiCK could be be less verbose.  There&#39;s no reason that functions shouldn&#39;t be objects by default.  There ought to be a function type.  Then we wouldn&#39;t need functors to do functional programming.  Perhaps even a lambda keyword.  &quot;fun int&quot; could define a type...  <br>
<br>lambda(int y)<br>{<br>    return y + 1;<br>} @=&gt; fun int x;<br><br>&lt;&lt;&lt; x(4) &gt;&gt;&gt;;  // prints 5<br><br>// obviously, that&#39;s fraught with issues...  function pointers could work like this:<br><br>
fun int f(int g)<br>{<br>    return g+1;<br>}<br><br>f @=&gt; function x;<br><br>&lt;&lt;&lt; x(4) &gt;&gt;&gt;;  // prints 5<br>&lt;&lt;&lt; x(4.4) &gt;&gt;&gt;;  // error<br><br><br>This is going to be a huge thing to implement.  First, we should be able to continue to better do these things using the built-in object system using functors.  Okay, but we need to be able to determine the class of an object at runtime (I&#39;ve experimented with this already--so has Graham Coleman, who had a patch for an instanceOf method).  This requires introspection.  We should have that.<br>
<br>Constructors -- we&#39;ve been flirting with that idea for a long time.  We need those.  Interfaces...  yes.<br><br>These things would really allow us to create easy to use libraries for chuck IN CHUCK that allow for multiple paradigms (functional, OO, imperative, etc).  We can make Chuck feel like Ruby.  We can make Chuck feel like LISP.  We can make Chuck feel like Java, or C++, or whatever.  But only when we have these things.  <br>
<br>&lt;/soapbox&gt;<br><br>Just some ideas.<br><br>Mike<br><br><br>