r/programminghorror • u/DroneCyn • 19d ago
Lua uhh my (not) c++ code is acting weird...
this thing is cursed...
it is valid syntax (many things are hidden outside of the screenshot!)
772
Upvotes
176
u/Vladislav20007 19d ago
...explain
38
u/smocza_dusza 19d ago
It's likely do to extra
eafter World37
u/SeaworthyPossum23 19d ago
You forgot to import numpy
26
u/Key_River7180 19d ago
sir this is a wendy's
26
u/EurekaEffecto 19d ago
scientists reveal the Hi
9
u/djphazer 19d ago
Thanks, I now understand Lua less than ever
7
u/Baleia1970 18d ago
This will probably be in the next C++29 standard. 😂
6
u/S4N7R0 18d ago
this ain shit compared to whatever they smokin at the commitee https://cppreference.com/cpp/language/splice_specifiers
5
u/rimbas4 19d ago
Haha the square brackets tripped me up. Sneaky
l4
u/Character_Swim_438 19d ago
helloWorldEEEE?????
3
u/Even_Shallot6345 18d ago
2
u/james_harushi 19d ago
It looks like obj-c yuck
2
u/nullzg 18d ago
i had a stroke
3
u/asmanel 19d ago
This remind me the code I got when I tried to use AI to produce code.
Each time I tried, this wad that trzshy.
1
u/Grandmaster_Caladrel 19d ago
Bro programmed in Dutch
1
u/Frqstbite1001 18d ago
soon as i saw i knew in my bones that it was fucking lua
1
u/XaX1000 17d ago
reminds me of when i got this working in python "Hello World!"(print)
1
u/kjunith 19d ago edited 17d ago
Shouldn't
void "mai"n()bevoid "main"()?Edit: Downvoted for asking a question, pure reddit.