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
Closed

Constructeur constant et _ #4052

vicuna opened this issue Jun 21, 2006 · 1 comment

Comments

@vicuna
Copy link

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
Copy link
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
Projects
None yet
Development

No branches or pull requests

1 participant