I fail to see why this is needed. irc-message instances do not need the ability to be immutable; it was designed from the very start to be flexible (for example, if you parse a PING, you can change message.command to PONG and use #toString() to recreate the raw line). There's no reason why an object shouldn't be mutable.
If you can provide logical proof as to why such a method should be implemented, go ahead.
I fail to see why this is needed. irc-message instances do not need the ability to be immutable; it was designed from the very start to be flexible (for example, if you parse a PING, you can change
message.command
to PONG and use #toString() to recreate the raw line). There's no reason why an object shouldn't be mutable.If you can provide logical proof as to why such a method should be implemented, go ahead.