HackerTrans
TopNewTrendsCommentsPastAskShowJobs

kimundi

no profile record

comments

kimundi
·5 ปีที่แล้ว·discuss
Yes, the macros parse the string at compiletime and generate code that does the formatting as given by them. Here is an example for how the code would look like expanded: https://play.rust-lang.org/?version=stable&mode=debug&editio...
kimundi
·5 ปีที่แล้ว·discuss
Think of raising an orbit like moving an item from one side of your desk to the other.

You have to put energy into doing it, but the end result is just as much in balance with gravity as the starting point. So if you want it back where it was, you need to spent the same amount of energy to move it in exactly the same way in the opposite direction.