Gleam
Gleam is as Programming language that compiled into Erlang or JavaScript.
![](https://gleam.run/images/social-image.png)
Gleam
The Gleam programming language
![Gleam](https://gleam.run//images/social-image.png)
- 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で日
![gleam-jp](https://scrapbox.io/assets/img/content-logo.png)
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入門
![TypeScriptユーザーに贈るGleam入門](https://res.cloudinary.com/zenn/image/upload/s--rdiG8WJm--/c_fit%2Cg_north_west%2Cl_text:notosansjp-medium.otf_55:TypeScript%25E3%2583%25A6%25E3%2583%25BC%25E3%2582%25B6%25E3%2583%25BC%25E3%2581%25AB%25E8%25B4%2588%25E3%2582%258BGleam%25E5%2585%25A5%25E9%2596%2580%2Cw_1010%2Cx_90%2Cy_100/g_south_west%2Cl_text:notosansjp-medium.otf_37:%25E3%2581%2593%25E3%2581%25BE%25E3%2582%2582%25E3%2581%258B%2520%2Cx_203%2Cy_121/g_south_west%2Ch_90%2Cl_fetch:aHR0cHM6Ly9zdG9yYWdlLmdvb2dsZWFwaXMuY29tL3plbm4tdXNlci11cGxvYWQvYXZhdGFyL2U3NGU0NmZkYzMuanBlZw==%2Cr_max%2Cw_90%2Cx_87%2Cy_95/v1627283836/default/og-base-w1200-v2.png)