refactor definitions to use #define! helper
refactor display_function defaulting logic into compiler