"[Haskell] Named arguments to functions" HALP THEY ARE HERE!
-
-
Replying to @dibblego
not sure if i get the sentiment, just wanted to mention that OCaml has named arguments ("labels") which work great with currying.
1 reply 0 retweets 0 likes -
Replying to @keleshev
Do you mean currying, or applying arguments in arbitrary order?
1 reply 0 retweets 0 likes -
Replying to @dibblego
both carrying and applying (labeled) arguments in arbitrary order. See http://caml.inria.fr/pub/papers/garrigue-labels-ppl01.pdf …
1 reply 0 retweets 0 likes -
Replying to @keleshev
I think this is not a good idea, in that there exist superior ideas. e.g. libraries, not syntax.
1 reply 0 retweets 0 likes -
Replying to @dibblego
could be. As a practitioner I like labeled arguments.pic.twitter.com/7AglLKuiD5
1 reply 0 retweets 0 likes -
-
Replying to @dibblego
I like both. Sometimes you store the same 'a in a map as both keys and values, so why not distinguish them better at call site.
1 reply 0 retweets 0 likes -
-
Have you seen the tic tac toe challenge? https://github.com/NICTA/course/blob/master/projects/TicTacToe/TicTacToe.markdown …
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.