DrSchool تعلّم البرمجة بسرعة.
EN AR BN CS DE EL بحث

Erlang: الصياغة

أساسيات الصياغة في Erlang مع أنماط شائعة.

وقت القراءة: 1 min عدد الكلمات: 27
تقدمي

Erlang — Syntax

Hello World

io:format("Hello, World!~n").

Common patterns

Note: some languages differ. This page is a starter cheat sheet you can expand.

Comments

// line comment
/* block comment */

Variables (example)

// var / let / const / or language-specific syntax

Conditionals

// if / else

Loops

// for / while

Functions

// define a function