Fluent interfaces and leaky abstractions

前端 未结 8 2232
攒了一身酷
攒了一身酷 2021-02-13 14:30

What is a fluent interface? I can\'t find a good definition of this, but all I get are long code examples in a language I am not very familiar with (e.g. C++).

Also, wha

8条回答
  •  温柔的废话
    2021-02-13 15:19

    Thanks guys.

    Great description.

    My thought about fluent interfaces where that they were for readability. I could always read a chain of methods and how one is related to the previous/next method.

    E.g. like the poster who posted the validation example (I have written code similar to that before).

提交回复
热议问题