gleam-lang/gleam

Runtime crash on erlang when constructing bit arrays

Open

#4,271 opened on 2025年2月20日

GitHub で見る
 (3 comments) (0 reactions) (0 assignees)Rust (960 forks)batch import
discussionhelp wanted

Repository metrics

Stars
 (21,417 stars)
PR merge metrics
 (平均マージ 10d 19h) (30d で 69 merged PRs)

説明

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.

コントリビューターガイド