Like, a return value? so `drop(my_function());` instead of `let _ = my_function();`?
-
-
-
Yeah. I think the first one is clearer.
- 3 more replies
New conversation -
-
-
This is a good habit to have. It's such a good habit in fact that
@nim_lang enforces this to be done using the `discard` keyword. https://nim-lang.org/docs/manual.html#statements-and-expressions-discard-statement …Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
This reads to me as intentional destruction. In the case where the argument is a reference I think it would be confusing.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
In Haskell that's the "void" function.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
In OCaml we call it `ignore : 'a -> unit`
-
Same in F#. It is even required of use if you intend to ignore a value.
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.