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

Constructeur constant et _ #4052

Closed
vicuna opened this Issue Jun 21, 2006 · 1 comment

Comments

Projects
None yet
1 participant
@vicuna
Copy link
Collaborator

vicuna commented Jun 21, 2006

Original bug ID: 4052
Reporter: @alainfrisch
Status: closed (set by @damiendoligez on 2008-01-22T17:09:28Z)
Resolution: fixed
Priority: normal
Severity: feature
Fixed in version: 3.11+dev
Category: ~DO NOT USE (was: OCaml general)
Related to: #4675 #4835
Parent of: #4717

Bug description

Mini feature-wish pour Camlp4.

Dans un pattern, on peut écrire (C _) pour n'importe quel constructeur C d'arité n sauf si n = 0. Lorsqu'on génère du code, ça oblige à distinguer les cas n = 0, n <> 0. Ça me semblerait plus uniforme d'autoriser (C _) même lorsque C est un constructeur constant.

Additional information

C'est plutôt pour OCaml en général, vu que c'est le typeur qui verifie cela.

Cependant, je suis d'accord avec Alain sur ce l'utilité de ce type de patterns.

Qu'en pensez vous ?

@vicuna

This comment has been minimized.

Copy link
Collaborator Author

vicuna commented Jan 22, 2008

Comment author: @damiendoligez

implemente dans la branche 3.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.