gleam-lang / gleam

⭐️ A friendly language for building type-safe, scalable systems!
https://gleam.run
Apache License 2.0
17.94k stars 748 forks source link

Bit array int & float options on JavaScript #3287

Open richard-viney opened 4 months ago

richard-viney commented 4 months ago

The following options related to floats and ints aren't yet supported in bit array patterns & expressions on the JavaScript target:

Other bit array segment options not yet supported on JavaScript are outside the scope of this issue, e.g.:

I'm keen to implement this, so if there's any specific guidance or considerations that'd be great! I've played around today with adding size and endianness options to floats, so can extend that to ints and the other options listed above and submit for review.

lpil commented 4 months ago

Wonderful, yes! We want these for sure. I'm afraid I don't have any particular guidance.