I’ve never seen it not that way in many cases, so I assume it is intended.
Brandon Barker
brandon…@gmail.comOn Fri, Aug 8, 2014 at 8:44 PM, ‘Yannick Duchêne’ via ats-lang-users ats-lan...@googlegroups.com wrote:
In:
extern fun {a: t@ype} gprint (x: a): void
implement gprint (x) = print_int (x)
If the second definition is changed into:
implement gprint (x) = print_int (x) // White‑space inserted before
I get the message “the keyword [=] is expected”
Seems a space is required before generic’s parameters. Is this on purpose or
an unintentional effect of ATS2 parser actual implementation?
Yes, the space following val+ is optional. The same
can be said about val-, case+, and case-.On Friday, August 8, 2014 11:40:04 PM UTC-4, Yannick Duchêne wrote:
On the opposite of disallowed space, this one is to be noted too, as a
case of optional space:
val+list_cons (x, xs) = xs
Although without a space, it stands for this
val+ list_cons (x, xs) = xs
I guess it’s the same for all keywords ending in + or -.