gleam-lang/gleam

Runtime crash on erlang when constructing bit arrays

Open

#4,271 建立於 2025年2月20日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)Rust (960 fork)batch import
discussionhelp wanted

倉庫指標

Star
 (21,417 star)
PR 合併指標
 (平均合併 10天 19小時) (30 天內合併 69 個 PR)

描述

Currently, if you run the following code:

pub fn main() {
  let size = 2
  <<2.3:float-size(size)>>
}

The compiler will allow it, but when run, it produces an erlang Badarg error. This is probably not desired behaviour. I'm not sure if we consider this a breaking change, but since it never worked in the first place, I would lean no.

貢獻者指南