Click here to Skip to main content
15,929,653 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionusing namespace std; <-- is evil? Pin
Travis D. Mathison3-Mar-02 4:28
Travis D. Mathison3-Mar-02 4:28 
AnswerRe: using namespace std; <-- is evil? Pin
Todd Smith3-Mar-02 4:41
Todd Smith3-Mar-02 4:41 
AnswerRe: using namespace std; <-- is evil? Pin
Tim Smith3-Mar-02 5:00
Tim Smith3-Mar-02 5:00 
AnswerRe: using namespace std; <-- is evil? Pin
Travis D. Mathison3-Mar-02 5:07
Travis D. Mathison3-Mar-02 5:07 
AnswerRe: using namespace std; <-- is evil? Pin
Felix Cho3-Mar-02 12:37
Felix Cho3-Mar-02 12:37 
GeneralRe: using namespace std; <-- is evil? Pin
Christian Graus3-Mar-02 12:57
protectorChristian Graus3-Mar-02 12:57 
GeneralRe: using namespace std; <-- is evil? Pin
Tim Smith3-Mar-02 13:11
Tim Smith3-Mar-02 13:11 
GeneralRe: using namespace std; <-- is evil? Pin
Christian Graus3-Mar-02 13:48
protectorChristian Graus3-Mar-02 13:48 
This is fine as far as it goes, although IMO it adds a level of abstraction that is unnecessary (i.e. I still need to translate this on the fly as I read the document, although what you've shown is quite intuitive.

My personal opinion is that it is better for people to become accustomed to reading the only syntax that is never ambiguous. Most typedefs I've seen have used the vec/lst/map type prefixes, but created types like this

mpi2v
mpsz2w
veci1
veci2

This stuff is just a nightmare. I agree that poor use of a language feature does not dismiss the feature entirely, and in writing STL docs for work I put forward typedef as an issue for personal preference, but also explained why my preference is to avoid it.


Christian

The tragedy of cyberspace - that so much can travel so far, and yet mean so little.

GeneralRe: using namespace std; <-- is evil? Pin
Tim Smith3-Mar-02 13:57
Tim Smith3-Mar-02 13:57 
GeneralRe: using namespace std; <-- is evil? Pin
Christian Graus3-Mar-02 15:24
protectorChristian Graus3-Mar-02 15:24 
GeneralRe: using namespace std; <-- is evil? Pin
Felix Cho4-Mar-02 17:38
Felix Cho4-Mar-02 17:38 
GeneralSend To IrDA printer in Pocket PC Pin
Mesut3-Mar-02 1:18
Mesut3-Mar-02 1:18 
GeneralSimple question Pin
John Cruz3-Mar-02 0:50
John Cruz3-Mar-02 0:50 
GeneralRe: Simple question Pin
Rama Krishna Vavilala3-Mar-02 1:55
Rama Krishna Vavilala3-Mar-02 1:55 
GeneralRe: Simple question Pin
Michael P Butler3-Mar-02 9:55
Michael P Butler3-Mar-02 9:55 
GeneralAn amazingly puzzling ATL enigma! Pin
Nish Nishant2-Mar-02 23:10
sitebuilderNish Nishant2-Mar-02 23:10 
GeneralRe: An amazingly puzzling ATL enigma! Pin
Christian Graus2-Mar-02 23:31
protectorChristian Graus2-Mar-02 23:31 
GeneralRe: An amazingly puzzling ATL enigma! Pin
Mazdak2-Mar-02 23:35
Mazdak2-Mar-02 23:35 
GeneralRe: An amazingly puzzling ATL enigma! Pin
Nish Nishant2-Mar-02 23:54
sitebuilderNish Nishant2-Mar-02 23:54 
GeneralRe: An amazingly puzzling ATL enigma! Pin
Mazdak3-Mar-02 0:24
Mazdak3-Mar-02 0:24 
GeneralRe: An amazingly puzzling ATL enigma! Pin
Mazdak3-Mar-02 0:26
Mazdak3-Mar-02 0:26 
GeneralRe: An amazingly puzzling ATL enigma! Pin
3-Mar-02 1:52
suss3-Mar-02 1:52 
GeneralRe: An amazingly puzzling ATL enigma! Pin
Nish Nishant3-Mar-02 14:16
sitebuilderNish Nishant3-Mar-02 14:16 
GeneralRe: An amazingly puzzling ATL enigma! Pin
pba_3-Mar-02 2:45
pba_3-Mar-02 2:45 
GeneralRe: An amazingly puzzling ATL enigma! Pin
Nish Nishant3-Mar-02 14:18
sitebuilderNish Nishant3-Mar-02 14:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.