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

Oublier des arguments optionnels #3073

Closed
vicuna opened this issue Dec 10, 2001 · 1 comment
Closed

Oublier des arguments optionnels #3073

vicuna opened this issue Dec 10, 2001 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Dec 10, 2001

Original bug ID: 706
Reporter: administrator
Status: closed
Resolution: won't fix
Priority: normal
Severity: feature
Category: ~DO NOT USE (was: OCaml general)

Bug description

[very low priority feature wish]

Bonjour,

Le bout de code suivant est rejeté:

module M : sig val f : 'a -> 'a end = struct let f ?x y = y end

je me demandais s'il avait été envisagé d'autoriser cela (oublier
des arguments optionnels dans une signature, et introduire
la "coercion" adéquate), et s'il y avait un problème théorique.

Certes on peut toujours s'en passer, mais il peut être agréable
d'ajouter des arguments optionnels pour fournir des variantes internes
à des fonctions exportées; ou alors fournir à un foncteur une
implémentation avec des arguments optionnels qu'il ne connait pas.

Alain

@vicuna
Copy link
Author

vicuna commented Nov 13, 2002

Comment author: administrator

author says low priority :-) Unclear we want to do this.

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

No branches or pull requests

1 participant