Subscribe to Bodom's Universe        RSS Feed
-----

using void in () in C++

Icon 2 Comments
This is not really a tutorial, just a mere observation of mine. I have seen that people get lazier and lazier about using void inside the parentheses for their function's argument list. I honestly do not mind this one bit when working in C#, as you will get a lovely error if you do so, but for some reason, not having it there bugs the crap out of me when I am working with C++. Even after I compile my code and run it, I will still go back and edit in the void statements if I forgot them the first time. (So sue me, I've been programming in C# a lot lately).

I was just wondering if anyone else has these little pet peeves or things they need done a certain way when they code. Not when you are reading other peoples code, but more so when you are writing your own code?

Leave a comment! Let me know what you think!

2 Comments On This Entry

Page 1 of 1

KYA 

30 March 2009 - 10:02 AM
I have to disagree here. Empty parentheses, to me, signify void. It's one of those unspoken things. I don't think of it as a shortcut, but in a thousand line program who wants to type void over and over when its not necessary (like in C++)?
0

bodom658 

30 March 2009 - 10:35 AM
I see what you mean, thanks for the input KYA!
0
Page 1 of 1

January 2022

S M T W T F S
      1
2345678
9101112131415
161718192021 22
23242526272829
3031     

Recent Comments

Search My Blog

20 user(s) viewing

20 Guests
0 member(s)
0 anonymous member(s)