justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.


Name: Ask: Human (enter yes):
[back to index] | [unreplied] | [replied] | [recent comments] | [all]

Question: C has very few fancy language constructs, yet you can do anything with it. Are new language features really worth anything?
Asked by Will (70.173.150.x) on December 18 2011, 7:28pm
Reply on December 18 2011, 9:01pm:
    Sure, for example, having member functions that have an implicit "this" pointer takes a great deal of pain-in-the-ass away (I'll admit this is at the expense of scope clarity -- hence, it makes sense to prefix member variables with m_ or similar so you never have to worry about "is this local or is this a member?" -- but this is not hugely different from local vs global data anyway). Also templates can be very handy, too, otherwise in C you use other kludges like big nasty #define based macros, or #define + #include, etc. Having said that, I do end up doing those as well, at times.

Comment:
    Your Name:   -- Site Owner's Name:  (for human-verification)

    Comment:    

    
  
[back to index] | [unreplied] | [replied] | [recent comments] | [all]
Copyright 2025 Justin Frankel. | RSS