gren-lang / compiler

Compiler for the Gren programming language
https://gren-lang.org
Other
379 stars 23 forks source link

All bytes are equal #241

Closed blaix closed 7 months ago

blaix commented 7 months ago

Looks like a carry-over from elm: https://github.com/elm/bytes/issues/15

> import Bytes.Encode
> a = Bytes.Encode.encode <| Bytes.Encode.string "Byte me"
<7 bytes> : Bytes.Bytes
> b = Bytes.Encode.encode <| Bytes.Encode.unsignedInt8 1
<1 bytes> : Bytes.Bytes
> a == b
True : Bool
blaix commented 7 months ago

Oops, this should probably be on https://github.com/gren-lang/core I think?

blaix commented 7 months ago

Yep, and it's already there: https://github.com/gren-lang/core/issues/48