Fluent interface in Delphi

后端 未结 5 929
既然无缘
既然无缘 2021-01-30 17:25

What are the pros and cons in using fluent interfaces in Delphi?

Fluent interfaces are supposed to increase the readability, but I\'m a bit skeptical to have one

5条回答
  •  隐瞒了意图╮
    2021-01-30 18:06

    This is a kind of write-once-read-never notation that is not easy to understand without going through documentation for all involved methods. Also such notation is not compatible with Delphi and C# properties - if you need to set properties, you need to rollback to using common notations as you can't chain property assignments.

提交回复
热议问题