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

question: why comments are ignored #38

Open
bobzhang opened this issue Apr 26, 2017 · 3 comments
Open

question: why comments are ignored #38

bobzhang opened this issue Apr 26, 2017 · 3 comments

Comments

@bobzhang
Copy link
Contributor

it is quite common that comments are abstracted as well, for example:

#define Make(t)\
  (** [t] *) \
  type elt  =  t  

In general, you wish both to bel replaced

@mjambon
Copy link
Member

mjambon commented Apr 26, 2017

I like the idea. I just didn't think about it originally.

If anyone wants to work on this feature, go for it.

@bobzhang
Copy link
Contributor Author

Would not be that don't treat comment in a special way good enough? Did I miss anything?

@mjambon
Copy link
Member

mjambon commented Apr 27, 2017

Yes, I think it would be enough. (* and *) need to be identified as tokens other than simple parentheses but other than that, the contents could be anything.

If we uncover incompatibilities with existing code, I think it's reasonable to just document them and release cppo with a new major version number.

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

2 participants