We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expected return value according to type annotations is Result(String, Nil)
Result(String, Nil)
envoy/src/envoy.gleam
Line 17 in e3c80dd
Erlang matches that:
envoy/src/envoy_ffi.erl
Line 7 in e3c80dd
JS has a string value rather than nil:
envoy/src/envoy_ffi.mjs
Line 14 in e3c80dd
Neither one is favored in the tests as they both use the _ match:
_
envoy/test/envoy_test.gleam
Line 12 in e3c80dd
Line 20 in e3c80dd
The Result(String, Nil) is probably the desired behavior as it matches dict.get:
dict.get
https://github.com/gleam-lang/stdlib/blob/341a71049ad765f8788af497969efbb94aba0bab/src/gleam/dict.gleam#L152-L152
What do you think?
(Related to the test failure on the gleam cookbook: gleam-lang/cookbook#20)
The text was updated successfully, but these errors were encountered:
Oh how awful, I'm sorry about this!
Sorry, something went wrong.
No branches or pull requests
Expected return value according to type annotations is
Result(String, Nil)
envoy/src/envoy.gleam
Line 17 in e3c80dd
Erlang matches that:
envoy/src/envoy_ffi.erl
Line 7 in e3c80dd
JS has a string value rather than nil:
envoy/src/envoy_ffi.mjs
Line 14 in e3c80dd
Neither one is favored in the tests as they both use the
_
match:envoy/test/envoy_test.gleam
Line 12 in e3c80dd
envoy/test/envoy_test.gleam
Line 20 in e3c80dd
The
Result(String, Nil)
is probably the desired behavior as it matchesdict.get
:https://github.com/gleam-lang/stdlib/blob/341a71049ad765f8788af497969efbb94aba0bab/src/gleam/dict.gleam#L152-L152
What do you think?
(Related to the test failure on the gleam cookbook: gleam-lang/cookbook#20)
The text was updated successfully, but these errors were encountered: