Gleam
Gleam is as Programming language that compiled into Erlang or JavaScript.
Gleam
The Gleam programming language
https://gleam.run/
- type-safe
- Reliable and scalable
- Ready when you are
- Here to help
- Multilingual
gleam-jp (scrapbox)
gleam-jp
逆引きGleam / settings / このプロジェクトへの貢献方法 / Gleam標準ライブラリv0.40.0における破壊的変更の説明と対応方法 / Gleamで困ったときは / GleamのHTTP / Gleamのテスト / Erlang VM / GleamとJWT / Hex.pm HTTP API / Comamoca / Gleamの文字列処理 / Gleam / Gleamで日
https://scrapbox.io/gleam-jp
Gleam can be called from Erlang, and Erlang can be called from gleam.
Same for Elixir.
Gleam has no function below:
- for, while statement
- if statement
- non-local exits
- class
Gleam has:
- pattern matching
- result type
- pipe
Gleam compiler is written in Rust.
sample code:
import gleam/io
pub fn main() {
io.println("Hello from sample!")
}
refs:
TypeScriptユーザーに贈るGleam入門
https://zenn.dev/comamoca/articles/gleam-tour-for-typescript-user