noun
- The process of removing syntactic sugar from code or a programming language to reveal its underlying, more fundamental form.
Usage: technical; computing
verb
- To remove syntactic sugar from code or a language construct, converting it to a simpler or more explicit equivalent.
Usage: technical; computing; present participle of desugar
Examples
- The compiler performs desugaring to transform arrow functions into regular function expressions.
- Desugaring the template syntax reveals the underlying function calls.
- During desugaring, the for-of loop is converted into a while loop with an iterator.
- The language specification includes desugaring rules for all syntactic sugar features.
- Desugaring helps developers understand what their code actually does at a lower level.