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

Erlang interop? #1

Open
oubiwann opened this issue Jul 7, 2020 · 2 comments
Open

Erlang interop? #1

oubiwann opened this issue Jul 7, 2020 · 2 comments

Comments

@oubiwann
Copy link

oubiwann commented Jul 7, 2020

Maybe I missed it, but is there a section of the web site that discusses Erlang interop the way that the Clojure site discusses Java interop? I did see this:

but that's nothing like what Clojure has, with actual examples for all the permutations of usage:

Maybe it's somewhere else that I missed?

If not, this would be a docs feature request ;-)

@oubiwann
Copy link
Author

oubiwann commented Jul 7, 2020

Admittedly, it would be much shorter a page than the Java interop one ;-) Trying to think of all the useful bits to call out explicitly and show usage for (or note as prohibited, unsupported, or a future feature):

  • Calling Erlang functions: (M/F A)syntax with examples
  • When referring to functions, whether to use a symbol or a keyword (there's a bit of ambiguity there with clj <-> erl)
  • Project structure, including use of namespaces in separate files, nested directories
  • How Clojure namespaces are used in creating .beam files
  • Using native data structures: #erl ... syntax with examples and maybe even a couple of practical use cases (no-brainers, but still reassuring to see when you're a newcomer)
  • How to include .erl code in Clojerl projects
  • I can't remember if Erlang's spec is supported in Clojerl? If so, that'd be good to cover here, too
  • (Re)stating how the types of Clojerl and Erlang map between each other (or providing a link to the definitive spot that is done)
  • Calling Clojerl namespaces/functions from Erlang
  • Calling Clojerl protocol implementations from Erlang

Can't think of anything else right now ...

@oubiwann
Copy link
Author

Okay, I've created a branch here:

It's just got stubbed markdown right now; if you're interested in filling any of it in, lemme know and I'll add you as a collaborator on the branch (or, if you want to submit a PR against this particular branch, that's cool too).

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

No branches or pull requests

1 participant