Why not rename .bind() to unwrap() or unbind() at least? I think it would look more logical in the context of its use.
a
Alejandro Serrano.Mena
03/09/2025, 4:42 PM
there's actually an open issue about this, and it seems that
getOrRaise
would also be a good name
š 5
šš» 1
v
Vlad
03/09/2025, 4:43 PM
I agree. I like it too.
a
Alejandro Serrano.Mena
03/09/2025, 4:43 PM
however, we always find ourselves in the following situation:
⢠for people coming from functional languages, "bind" is a good name, since it's shared among those, whereas any other would be more difficult to find
⢠for newcomers to Arrow, it doesn't really matter you call it
bind
or
gokolu
, since the harder part is in understanding how everything fits together
for that reason we've kept the name