Well, yeah, it's a class definition, but what about it makes it bad code? The fact you can only instantiate one with another (chick/egg problem)? It doesn't look much different than a simple Java class with a copy constructor.
I may know this person, because I worked with a kid a few years ago who did exactly this. And he argued vehemently that it was the correct way to name that variable
27
u/soggywaffle69 Aug 09 '21
What language is this? I take it this is a copy constructor?
67
u/lemarkk Aug 09 '21
I'll admit I've never seen iD before.
7
u/BlueMarble007 Aug 09 '21
What’s the .. notation?
18
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Aug 09 '21
Image Transcription: Code
I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!
4
u/karisigurd4444 Aug 10 '21
Your font is one step away from being comic sans
7
u/SeesawMundane5422 Aug 10 '21
I’m assuming the horror is using a floating point to represent a dollar amount? ;)
6
u/CSsharpGO evil Aug 09 '21
The editor didn’t even want to change iD? PLEASE JUST MAKE IT CAPITAL I BEG OF YOU