[Grace-core] Some comments from Tijs on parsing Grace

Tijs van der Storm storm at cwi.nl
Wed Jul 27 04:09:12 PDT 2016


>
>
> The catch with doing this for Algol style parameter lists is that (in a
> dynamically typed world) a method taking a single parameter will bind
> fine for both a single object argument, or a single "lineup" containing
> one or more objects - but the thing bound to the arguments will be
> unexpectedly different.   There's also the Python "trailing ,"  syntax to
> create a oneple.
>

Not sure I understand, but I guess this is about having both varags and
lineups (somewhat similar to the mess of passing an array of Objects into
an Java vargargs method). The comma-as-infix would be disallowed as direct
parameter, so there's no magical splicing going on anywhere.

(Btw, comma would then just be cons, not flat-cons, if you assume it's
right associative, but I guess this is off limits for Grace ;).

T



>
> J
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailhost.cecs.pdx.edu/pipermail/grace-core/attachments/20160727/4d6b26ad/attachment.html>


More information about the Grace-core mailing list