2026-03-14 10:39 UTC
@tagir_valeev I sometimes wonder how many of these pattern matching samples incentivize bad design. I have yet to see an example in which it wouldn’t have been better to simply call a method on the object. This here in particular feels like an utterly complex way to write list.forEach(Object::toString); 🤷♂️
Replies (1)
-
@tagir_valeev@mastodon.online 2026-03-14 15:44
@odrotbohm you may not have every possible algorithm available directly as a record member. Sometimes, you need something new right here.