TypeScript Enum Reverse Mapping
enum Color { RED, GREEN, BLUE } "use strict"; var Color; (function (Color) { Color[Color["RED"] = 0] = "RED"; Color[Color["GREEN"] = 1] = "GREEN"; Color[Color["BLUE"] = 2] = "BLUE"; })(Color || (Color = {}));
A two-panel Scooby-Doo image shows Fred first tying up a person with an enum declaration, then freeing them after the code is compiled into TypeScript’s numeric enum reverse-mapping output. The joke is that the verbose generated JavaScript code looks like a complicated rope knot, while the original enum is simple and clean. EN: A two-panel Scooby-Doo image shows Fred first tying up a person with an enum declaration, then freeing them after the code is compiled into TypeScript’s numeric enum reverse-mapping output. The joke is that the verbose generated JavaScript code looks like a complicated rope knot, while the original enum is simple and clean.
blond cartoon man / светловолосый мультяшный мужчинаtied-up person / связанный человекwhite shirt / белая рубашкаorange neckerchief / оранжевый шейный платокblue collar / синий воротникblack rope / чёрная верёвкаcode snippet / фрагмент кодаcomputer programming / программированиеtwo-panel comic / комикс из двух панелейdark blue background / тёмно-синий фонcloth sack / тканевый мешок
- @profunctor_io / 2717 2019-07-24
- Type
- image
- Size
- 600×800 · 72.1 KiB
- Mood
- sarcastic, absurd
- Language
- en
- Added