$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Douglas Gregor (gregod_at_[hidden])
Date: 2003-10-08 23:20:31
On Wednesday 08 October 2003 04:42 pm, David Abrahams wrote:
> Well, I'm familiar with lisp, where it's:
>
> (let ((v1 <sexpr1>) (v2 <sexpr2>) ... )
> <body-sexpr1>
> <body-sexpr2>
> ...
> <result-sexpr>)
>
> So I'd think something like:
>
> let[ (Y = X %plus% 3, F = minus[2]),
> F[Y]
> ]
>
> Would be more analagous, and terser. I don't see why "in" is of any
> help.
The FC++ syntax is much closer to ML, which looks more like:
let variable = <expr> in <structure>
I just like the obvious syntactical break between the introduction of the new
bound variable name and the scope in which it is used.
Doug