News for hackers. Stuff that matters.
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.