To summarize, the principle I advocate is to establish early what kind of object you are dealing with, and once you have paid for that information, retain it as long as you can. In LilyPond it seems I often see the opposite: casts in the lowest depths of the code.
Regards, Dan https://codereview.appspot.com/344010043/ _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel