Author arcivanov
Recipients arcivanov
Date 2018-02-26.10:54:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1519642458.5.0.467229070634.issue32954@psf.upfronthosting.co.za>
In-reply-to
Content
@serhiy.storchaka Of course a similar pattern can be implemented via a class (or even without one as I've shown below). 

But you can clearly notice that in your example:

1) There are tons of boilerplate (as in mine with lambdas).
2) It's going to be slower than a core implementation with specialized objects.
3) It can't be made to cooperate with a FORMAT_VALUE/BUILD_STRING - intermediate strings will still be produced.
History
Date User Action Args
2018-02-26 10:54:18arcivanovsetrecipients: + arcivanov
2018-02-26 10:54:18arcivanovsetmessageid: <1519642458.5.0.467229070634.issue32954@psf.upfronthosting.co.za>
2018-02-26 10:54:18arcivanovlinkissue32954 messages
2018-02-26 10:54:18arcivanovcreate