News for hackers. Stuff that matters.
Re:Why We Use OCaml by ufo on Thursday July 17, 2014 @12:05AM (#8046009)
One simple use I like a lot is using tail recursion as a replacement for gotos. Its great for state machines and other "algorithmy" tasks. You get the benefits of gotos (the code you write is the same as the code you think) but the end result is actually manageable.

http://www.lua.org/pil/6.3.html

Lambda the ultiamte goto: http://library.readscheme.org/page1.html

There are no comments on this comment yet.