It definitely doesn't make code harder to debug unless you're doing it wrong.
-
-
Replying to @cmuratori
the only downside I can see is the extra effort required to restrain myself from *MORE* metaprogramming
1 reply 0 retweets 1 like -
Replying to @sssmcgrath
Last week we hit 100% pass-through on the Molly codebases. Presumably it'll be a while before we're 100% meta though :)
2 replies 0 retweets 0 likes -
Replying to @cmuratori
One interesting side effect is I can probably go full C now (in terms of generated code), no need for any C++
1 reply 0 retweets 2 likes -
Replying to @sssmcgrath
I haven't moved to full C yet because the metasystem doesn't replace overloaded functions w/ new names yet.
1 reply 0 retweets 0 likes -
Replying to @cmuratori @sssmcgrath
Eventually I should probably do that so that I can be C-clean and have a wider choice of backends.
1 reply 0 retweets 1 like -
Replying to @cmuratori @sssmcgrath
At the moment it doesn't seem to be particularly interesting because all the targets I use are C++-ready.
1 reply 0 retweets 0 likes -
Replying to @cmuratori
Controlling name mangling to make debugging a bit nicer is the only real reason I can think of
1 reply 0 retweets 0 likes -
Replying to @sssmcgrath
I haven't found that to be much of a concern. Being able to step through _expanded_ code, though, is a huge bonus.
1 reply 0 retweets 0 likes -
Replying to @cmuratori @sssmcgrath
IDEs should really allow you to view your C++ template code specialized to the compiled output.
1 reply 0 retweets 1 like
It's always immediately obvious what's going on in generated code _you can actually see_, IMO...
-
-
Replying to @cmuratori @sssmcgrath
... but the big F U of templates is that you never get to see that AFAIK.
1 reply 0 retweets 1 like -
Replying to @cmuratori @sssmcgrath
That would be _extremely_ useful for working through batshit crazy template code.
1 reply 0 retweets 0 likes - Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.