Re:Near Future of Programming Languages [pdf]
by tom_mellior on Tuesday October 31, 2017 @10:12AM
(#15593340)
So how exactly would you write the above five lines of OCaml in fewer than five lines in Idris?
Re:Near Future of Programming Languages [pdf]
by smaddox on Tuesday October 31, 2017 @03:02PM
(#15595676)
The verbosity is not in the function definition, its in the match expression needed at _every single call site_. In Idris, the definition would be similar length or longer, but call sites would not need a match expression.
In a dependently typed language, you could reduce verbosity at the use site as well as avoid the extra runtime branch.