On Feb 13, 2013 6:26 AM, "David A. Wheeler" <dwhee...@dwheeler.com> wrote:
>
> > Alan Manuel Gloria:
> > > xref. Arne Babenhauserheide's concept, I'm proposing that we steal his
> > > extended PERIOD notation and add it into sweet-expressions.
>
> > > <* define-library \\ (srfi 41 primitive)
> > >
> > > export
> > > . stream-cons stream-null
> > > . stream-pair? stream-null? stream?
> > > . stream-car stream-cdr
> > > . stream-lambda
>
> The problem is that this isn't hard to write as-is without this
capability.
> The same email showed . (...), and I showed:
>
> > <* define-library \\ (srfi 41 primitive)
> >
> > export
> > stream-cons \\ stream-null
> > stream-pair? \\ stream-null? \\ stream?
> > stream-car \\ stream-cdr
> > stream-lambda
> > *>
>
There is no point supporting both; to me, the interesting proposal would be
interesting adding extended period *instead* of SPLIT.
I tend to agree with David's analysis that \\ is less confusing.
Another difference between these approaches is that SPLIT does the
single/multiple => atom/list magic on each segment, e.g.:
foo \\ bar baz \\ quux ==> foo (bar baz) quux
which IMHO is too sneaky, while extended PERIOD disables listifcation for
the whole line up-front.
A more typical use case is:
func
! angle: \\ alpha
! height: \\ sin alpha
where the atom/list magic allows pleasant symmetry; with the period
notation, one has to explicitly make (sin alpha) a list, e.g.:
func
! . angle: alpha
! . height: $ sin alpha
Similarly, $ currently treats RHS in single/multiple => atom/list manner,
which allows symmetry for:
cond
foo $ bar of baz
quux $ atom
So I think the extended period notation makes a lot of sense in context of
Arne's proposal which guts the single/multiple sensitivity, but doesn't fit
well into the current spec which features this sensitivity throughout.
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Readable-discuss mailing list
Readable-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/readable-discuss