gleam-lang/gleam

Runtime crash on erlang when constructing bit arrays

Aberta

#4.271 aberto em 20 de fev. de 2025

 (3 comentários) (0 reação) (0 responsável)Rust (960 forks)batch import
discussionhelp wanted

Métricas do repositório

Stars
 (21.417 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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.

Guia do colaborador