highsource / highsource/jaxb-tools

[Discuss] Functional v Fluent

Open
#667 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
465
Forks
105
PR merge metrics
No merged PRs in 30d

Description

**_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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.