Skip to content

[Discuss] Functional v Fluent #667

@mattrpav

Description

@mattrpav

Please click the thumbs-up emoji if you use the fluent-api plugin as a way of performing a census.

Functional programming is raising in popularity w/ Java and unfortunately, it uses the 'with' prefix on methods vs 'set'. Also, feels like Functional programming is out-pacing Fluent and we support Functional long term.

Functional differs as the copy() method would be called on each withX() invocation to ensure a fresh instance is used and maintain immutability-like behavior.

The problem is that both styles use the 'withX(X x)' prefix, but behavior is very different.

  1. Do we provide the ability to set the method prefix for fluent-api to something else going forward?

  2. If we add a Functional plugin, do we detect if fluent is also used and error out b/c both can't be used together?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions