Violates the Law of Demeter
Programmer Humor
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
I'm not sure if this is serious or not and that scares me.
I honestly don't know why they even have -> instead of just a dot like everyone else. The compiler knows whether it's a record, object, pointer, or any level of pointer to pointers.
Why make the programmer do the donkey work?
Operator overloading allows you to redefine what each operator does. It's essential to achieve a truly fucked up code base
It's important for objects that can be dereferenced. Smart pointers have methods that can be accessed with dot syntax like swap()
. You can still dereference through a smart pointer using arrow syntax to access methods on the referenced type since they overload the operator->()
method.
I love the arrow in functional programming. Some functional languages (like reasonml) has multiple arrow operators that did different things like this one -> would put the argument in the first position (a popular JS pattern) and the big arrow |> would put it last like most functional languages.
I know this is about CPP but honestly I love the way it looks, but I'm a weirdo lol
Please don't give them ideas
I pray for this to be real because it's the perfect syntactic sugar for C++. The kind that you'd think makes sense if you didn't have to write C++ for anything more complex than a high school project.
Right? Every C++ feature needs to be lightly cursed.
the :================D operator
New language idea:
:====D
:==========D 0
:=======0==D~~~
:==========D ~0
Ebin :D
TIHI
C++ is a joke.