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

Discuss macro ideas on IRC or the LFE list #1

Open
yurrriq opened this issue Dec 27, 2015 · 0 comments
Open

Discuss macro ideas on IRC or the LFE list #1

yurrriq opened this issue Dec 27, 2015 · 0 comments

Comments

@yurrriq
Copy link
Member

yurrriq commented Dec 27, 2015

As a user, I want to be able to write (defprop some-name ...) and enable EUnit to call it as prop_some_name/0 and myself to call it as prop-some-name/0 or prop_some_name/0.

Essentially, I want the kebab-cased version to expand to the snake-cased version at compile time.

I'm not sure of the best approach, and the following didn't work:

(defmacro defprop arg
  ...
  `(progn
    (defun ...)
    (defmacro ...)))
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