Erlang v Elixir | Table O Contents
The Elixir Functional Programming Language
or (FNL) is built on top of the Erlang virtual machine …
Note. The Flammarion Logo Badge
in the page header above is an .svg
image file set to the dimensions of 5%
width, auto
height, and zoom
. Go ahead and test the zoom-out
feature by hovering over the badge to engage the expansion of the image from your desktop.
Scope
Hint. There are spots in the code where the two languages, Elixir and Erlang … differ.
As such, Elixir
will incorporate features from the underlying Erlang
computer language.
One of those areas of overlap and segregation is the Concept of Delimiters
.
Delimiters
How to Terminate a line of code in Elixir
There are Two (2) ways to Terminate a line of code in Elixir, as follows:
From the Terminal app …
x + y;
;where the semi-colon
terminates an expression
And,
x + y
;where a simple line-break
terminates the expression x + y
Note. In Erlang the comma or ,
is used to separate expressions in a single line of code, as follows:
From the Terminal app …
x + y, z - 7.
Note. Also notice the period or .
at the end of the above Erlang
line of code.
The period or .
terminates a line of code in the Erlang
language, but not so conventionally in the Elixir
language.
Jekyll Server
Note. Detailed instructions on how to view this GitHub Pages
file locally using a Jekyll server are included in the accompanying Gemfile
for the project.
In short, type the following command statement from a Terminal window when set to the docs
subdirectory.
jekyll serve --watch --baseurl "" -o
Your browser will pop up to display the page. Otherwise, an error message as to why not will appear.
Credits
More to come …
Note. The above synopsis was derived from an article written by Elixir-Lang dot org
[1].
Support
Please support the co-workers who aggregate the Source Links for our projects.
Patreon
Like what you see in this project? If so, then support the authors and machine-elves
who aggregate the source links and pages for our projects via Patreon.