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.

贡献者指南