Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose ML implementation name in the REPL #15

Open
eduardoleon opened this issue Jul 1, 2016 · 1 comment
Open

Expose ML implementation name in the REPL #15

eduardoleon opened this issue Jul 1, 2016 · 1 comment

Comments

@eduardoleon
Copy link

I'd like interactive Successor ML implementations to expose their name as a standardized global constant:

val topLevelName : unit -> string

This way, it would be easier to work around differences between implementations, writing code that looks like this:

case topLevelName () of
    "Poly/ML" => use "Foo.PolyML.sml"
  | "MosML" => use "Foo.MosML.sml"
  | "SML/NJ" => use "Foo.SMLNJ.sml"

Thus avoiding the need to use arcane external tools for building programs.

@JohnReppy
Copy link
Contributor

I do not think that we should be relying on the REPL for configuring builds. I think that something like smackage is a better approach.

That said, adding a standard way to query vendor information from SML does seem like a reasonable feature. It could either go into a new module or be added to the General structure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants