Re:Are Implicit Operators a Path to Clean Code or a Buggy Ni...
by smitty1e on Tuesday August 08, 2023 @10:39PM
(#37058114)
The general review of anything, "It would have been twice as good if it was half as long" applies.
[ Parent
| on HN ]
Re:Are Implicit Operators a Path to Clean Code or a Buggy Ni...
by mvdtnz on Tuesday August 08, 2023 @11:27PM
(#37058379)
Not in the general case, no. Not in programming. I would much rather review (and maintain) 20 lines of clear, readable code than 3 lines of obscure clever code. More lines isn't better, but in the limit fewer lines is very often worse.
Re:Are Implicit Operators a Path to Clean Code or a Buggy Ni...
by chris_wot on Tuesday August 08, 2023 @11:50PM
(#37058508)
Three lines of clever, readable code is also better than 20 lines of obscure boilerplate code.
Re:Are Implicit Operators a Path to Clean Code or a Buggy Ni...
by OrderlyTiamat on Wednesday August 09, 2023 @03:33AM
(#37059673)
In particular if that boilerplate code spans multiple projs and type inheritances for something that really could be done in about three lines. Boilerplate has its own obscurity problems.