record-builder icon indicating copy to clipboard operation
record-builder copied to clipboard

feat: add optional suffix to static builder

Open RichardTree opened this issue 3 years ago • 2 comments

Not sure what you think of this, my team are coming from using Immutables heavily and are fond of their FieldName.of() syntax convention for static builders.

I’m assuming my change would enable us to call a static builder like FieldNameBuilder.FieldNameOf().

When statically imported, would read succinctly as FieldNameOf()

RichardTree avatar Dec 06 '22 22:12 RichardTree

Thanks for the PR - I'll look at this soon.

Randgalt avatar Dec 15 '22 20:12 Randgalt

My initial reaction is that RecordBuilder is getting too many options. We've already had some incompatible ones. We may need to re-think the customization scheme.

Randgalt avatar Dec 27 '22 12:12 Randgalt