
6 Aug
2015
6 Aug
'15
7:39 p.m.
On 5/08/2015, at 10:28 pm, Oliver Charles
That's not particularly bad here, the really pain is repeatedly having to do this for every single symbol I'm using. I'd prefer to be able to write
image = let css = let import CSS in [ width (px 50) ] in let import HTML in img [ width 50, style css ]
This is very like the 'open' directive in SML. The SML version would be something like val image = let val css = let open CSS in [width (px 50)] end in let open HTML in img [width 50, style css] end end So there's prior art.