verb
- to remove syntactic sugar from code; to convert a simplified or convenient syntax into its underlying, more explicit form
Usage: computing; programming
Examples
- The compiler will desugar the arrow function into a traditional function expression.
- Modern languages often desugar convenient syntax into lower-level operations during compilation.
- To understand what the code actually does, you need to desugar the syntactic sugar first.
- The transpiler desugars class syntax into prototype-based constructor functions.
- Developers can desugar template literals into string concatenation to see the underlying mechanism.