Discussion
Loading...

#Tag

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Michael Kohl 馃嚘馃嚬馃嚬馃嚟
@citizen428@chaos.social  路  activity timestamp 2 weeks ago

I have now also resurrected the other old #ocaml article and converted the code examples from #reasonml:

https://citizen428.net/blog/ocaml-module-functors/

Note that this was originally written for an audience of mostly OO programmers, not FP aficionados, so it may occasionally be a bit loose with terminology.

Module Functors in OCaml - citizen428.net

Note: A version of this article was originally written for Human Readable magazine in March 2020. That site no longer exists, so I decided to republish it on this blog. In the process I also converted the example code from ReasonML to OCaml syntax and updated the text to reflect those changes. Since functional programming鈥檚 move into the mainstream, many developers have embraced concepts like higher-order functions. OCaml take this a step further and extends the concept to the module level. This article explores module functors, a powerful feature that offers a functional approach to code sharing, dependency injection, and more.
  • Copy link
  • Flag this post
  • Block
Michael Kohl 馃嚘馃嚬馃嚬馃嚟
@citizen428@chaos.social  路  activity timestamp 2 weeks ago

I have another #ocaml article that is no longer available online since the magazine it was written for has shut down. However, it uses #reasonml syntax. Does anyone still use that, or should I convert the examples to OCaml and update the text?

  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About 路 Code of conduct 路 Privacy 路 Users 路 Instances
Bonfire social 路 1.0.0-rc.3.21 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login