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

Added simple Erlang Selection Based Evaluation. ;) #70

Merged
merged 2 commits into from
Mar 13, 2014
Merged

Added simple Erlang Selection Based Evaluation. ;) #70

merged 2 commits into from
Mar 13, 2014

Conversation

slaykovsky
Copy link

Hello! I just added an example and so simple selection based evaluation. ;)

bildschirmfoto 2014-03-13 um 17 09 08


Erlang:
command: "erl"
"Selection Based": (code) -> ['-noshell', '-eval', code+', init:stop().']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a comment about how the code has to be appended with , init:stop(). to get it to run (and stop apparently) in erl?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sorry, English is not my native language, I can't fully understand what you write :)
But, this , init:stop(). we need to kill erl, because it can't be killed by itself. ;) The code should be simple expression, there is no support for functions for example, because now that command (in this pull request) only can do some simple things (printing, for example) yet. But I'll do my best to understand how to use real REPL with this awesome plugin :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Erlang is a strange beast.

Will this still be practical with only simple evaluation?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course it is :)
Erlang is not a strange, it's just different :)

@rgbkrk
Copy link
Member

rgbkrk commented Mar 13, 2014

Thanks for adding the language as well as providing an example.

Can you add Erlang to the README?

@slaykovsky
Copy link
Author

Thank you! Yes, I will add it to the README. :)

rgbkrk added a commit that referenced this pull request Mar 13, 2014
Added simple Erlang Selection Based Evaluation. ;)
@rgbkrk rgbkrk merged commit ee6a726 into atom-community:master Mar 13, 2014
@rgbkrk
Copy link
Member

rgbkrk commented Mar 13, 2014

Here we go! Thanks @slaykovsky! Fixes #39.

@rgbkrk
Copy link
Member

rgbkrk commented Mar 13, 2014

🍰

@slaykovsky
Copy link
Author

And thank you!

@rgbkrk
Copy link
Member

rgbkrk commented Mar 13, 2014

screen shot 2014-03-13 at 10 09 57 am

@slaykovsky
Copy link
Author

Awesome ^_^

@rgbkrk
Copy link
Member

rgbkrk commented Mar 13, 2014

Alright, Erlang is in the v2.1.0 release now.

$ apm publish minor
Preparing and tagging a new version ✓
Pushing v2.1.0 tag ✓
Publishing [email protected]

@slaykovsky
Copy link
Author

Yeah!

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

Successfully merging this pull request may close these issues.

2 participants