gleam-lang/gleam

Runtime crash on erlang when constructing bit arrays

Open

#4271 aperta il 20 feb 2025

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)Rust (960 fork)batch import
discussionhelp wanted

Metriche repository

Star
 (21.417 star)
Metriche merge PR
 (Merge medio 10g 19h) (69 PR mergiate in 30 g)

Descrizione

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.

Guida contributor