Syntax spec? (Let vs where)

Hi, I looked a bit but failed to find a language syntax spec, to help
advertise / answer questions about ATS features & syntax. Please consider
making it more findable? :slight_smile:

I see let-in but is there support for where (which I overall much prefer)?

Thank you.

It is buried pretty deep:

http://ats-lang.sourceforge.net/htdocs-old/DOCUMENT/GRAMMAR/ats_grammar_desc.html

Here is an example:

fun fact(n: int): int = fact2(n, 1) where
{
//
fun fact2(n: int, res:int): int = if n > 0 then fact2(n-1, n*res) else res
//
}On Friday, May 6, 2016 at 3:26:43 PM UTC-4, Raoul Duke wrote:

Hi, I looked a bit but failed to find a language syntax spec, to help
advertise / answer questions about ATS features & syntax. Please consider
making it more findable? :slight_smile:

I see let-in but is there support for where (which I overall much prefer)?

Thank you.

thanks!