Fluent API
Fluent Interfaceとも言う
Martin Fowlerが提唱
メソッドチェーンによって簡単に記述できるDSLのようなAPI
code:例.java
java.nio.ByteBuffer
.allocate(10)
.put((byte)0)
可読性の向上
コード補完によるユーザビリティの向上
typelevelLR
https://github.com/csg-tokyo/typelevelLR
Fluent APIを自動生成する
Haskell実装
https://www.notion.so/typelevelLR-TypeScript-a25af8c3a8b24ace8bfe8e4296fbffc2
https://qiita.com/opengl-8080/items/7e7ebe8f6a32b3dfb49b
https://bliki-ja.github.io/FluentInterface/
https://en.wikipedia.org/wiki/Fluent_interface