Re: [MLton] RFC: implement "use" function to support explicit file dependency

Christopher Cramer <[email protected]> Wed, 5 Feb 2014 12:50:41 -0500
Newsgroups gmane.comp.lang.ml.mlton.devel
Message-ID <[email protected]>
On Wed, Feb 05, 2014 at 12:10:48PM +1100, James Deng wrote:
> I thought this mechanism can be implemented similar to that of the ML Basis system. Please point out if I am wrong.
> 
> The mlb files are elaborated with the elaborateMLB function in the
> Elaborate phase. I guess this phase is able to combine and substitute
> all the “use” statements with file contents. (I assume the “use”
> is not a normal function, but a compile time meta-programming.)

Oh, if it's not a normal function, then that can even be implemented
in FrontEnd. But then you're really talking about extending the language.
It's not up to me, but the MLton policy has been to avoid language extensions
except where absolutely necessary. You might be better off just writing a
preprocessor.

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
MLton-devel mailing list
[email protected]; [email protected]
https://lists.sourceforge.net/lists/listinfo/mlton-devel