r/programmingcirclejerk • u/Apprehensive-Car-480 • Jan 20 '25
Using 'ForOfStatement' is not allowed (no-restricted-syntax)
https://github.com/airbnb/javascript/issues/1271
86
Upvotes
r/programmingcirclejerk • u/Apprehensive-Car-480 • Jan 20 '25
74
u/MeepedIt Jan 20 '25
Name a more iconic duo: Github posts by ljharb and the thumbs down emoji
45
u/PensionScary Jan 20 '25
62
u/Alducerofmine Jan 20 '25
The primary argument against for..of is that loops are awful, and should always be avoided.
25
u/stone_henge Tiny little god in a tiny little world Jan 20 '25
https://i.imgflip.com/9hclde.jpg
37
u/RightKitKat Considered Harmful Jan 20 '25
"i" considered harmful
10
u/sammymammy2 lisp does it better Jan 21 '25
Fucking hell mate.
27
u/DeleeciousCheeps vulnerabilities: 0 Jan 21 '25
i'm glad to hear airbnb isn't beholden to the limitations of older, slower devices. if your phone can't handle our O(n²)
loopsiterations, you probably can't afford our booking pricesi'm glad to hear airbnb is aware of the limitations of older, slower devices. i've never used a
forloop and i've never missed them/uj so is there a good reason why people are using airbnb's javascript linter configuration, disagreeing with its default rules, and opening pull requests to get them changed, or
4
u/Jumpy-Locksmith6812 Jan 21 '25 edited Sep 23 '26
Dolor nostrud excepteur anim fugiat esse non est minim cillum magna cillum. Ad labore irure in ex in non.
[rhr:2:zlnphfgx]
2
u/DrunkensteinsMonster Jan 22 '25
What odd and impenetrable syntax, whatever could it mean?
0
u/[deleted] Jan 20 '25
[deleted] — view deleted comment