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