[chuck-dev] coding suggestions

Ge Wang gewang at CS.Princeton.EDU
Mon Jul 26 21:29:31 EDT 2004

On Jul 26, 2004, at 7:29 PM, Niklas Werner wrote:

> I'd like to suggest the following:
> use GNU getopt() for the command line options (--optionArgument is just
> greatly confusing: --option Argument is so much nicer, and you get rid 
> of
> all the else if() in chuck_main.

good idea - how standard is getopt()?  --option Argument is certainly 
if it is very standard (or we can contain getopt in distribution), then 
we should
look into use it.

> Your next_power_2() function seems to waste loads of cycles, although 
> this
> doesn't really matter, as it is only used at startup, but wouldn't that
> be a nice feature for the language anyway?

you are right.  the code that you posted is integrated - also added to 

Thanks Niklas.


More information about the chuck-dev mailing list