[Grace-core] Assignment return values and null

Michael Homer mwh at ecs.vuw.ac.nz
Tue Jun 26 12:59:43 PDT 2012


On Jun 27, 2012 1:06 AM, "Jan Larres" <jan at majutsushi.net> wrote:
> Just in case my original message wasn't quite clear, I wasn't looking
> for the most theoretically elegant solution just for myself, I was
> trying to figure out a simple, straightforward way for the language
> target audience of beginning students.
> I'm not sure I would call this "nice" -- in my opinion it mainly
> demonstrates that there's a real need for proper break/continue
> statements in Grace. Passing around and applying 'break' blocks would
> most likely seem pretty arbitrary to beginners.
>
> Thanks for the input! Given how the language currently works your ideas
> are certainly reasonable. I just think that there should be more
> straight-forward ways of doing this, considering what the actual goal of
> the language is.
It should obviously be an iterator, but only character iteration is
implemented at the moment. Returning a variant type would be sensible for
the manual case.
-Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailhost.cecs.pdx.edu/mailman/private/grace-core/attachments/20120627/72f8f32a/attachment.html>


More information about the Grace-core mailing list