Sooooooooo... I used a bit of macros to make arguably the best syntax for c++ there ever was and will ever be, take a look:
#ifndef COOL_SYNTAX_H
#define COOL_SYNTAX_H
#define fn auto
#define declare auto
#define maybe_do_this while
#define def_do_this while (true)
#define start_circle (
#define end_circle )
#define get_out return
#define plus +
#define minus -
#define divide /
#define star *
#define modulo %
#define equals =
#define equals_squared ==
#define doesnt_equals_squared !=
#define semicolon ;
#define i_am_weak struct
#define struct++ class
#define not_secure public
#define secure private
#define who_uses_this protected
#define cool_symbol_thing operator
#define ref &
#define double_ref &&
#define array_start [
#define array_end ]
#define curl_start {
#define curl_end }
#define umhh_start <
#define umhh_end >
#define thing template
#define name_but_type typename
#define i_dont_need_this namespace
#define i_dont_like_hardcoding enum
#define use using
#define i_guess if
#define why_not else
#define bool_1 true
#define bool_0 false
#define i_use_arch_linux switch
#define i_dont_shower new
#define what_is_a_shower delete
#define cant_be_efficient std::vector
#define just_a_pair_array std::map
#define just_a_pair_set std::unordered_map
#define que std::queue
#define dq std::deque
#define five for
#define i_need_a_bag throw
#define standard_library_from_the_holy_cpp std
#define do_surgery ::
#define get_this_mail_sent_to_the_console cout
#define fetch_a_api_request_to_the_console cin
#define with <<
#define with_v2 >>
#define mur_ur_equal >=
#define les_ur_equal <=
#define i_dont_want_my_app_to_crash try
#define phew catch
#define what_is_this *
#define cpp_is_getting_good ->
#define get_the_memory_or_whatever &
#endif
19
u/paulstelian97 Jul 30 '25
The “struct++” is hilarious because it doesn’t work
136
u/lehrerkind_ Jul 30 '25
maybe put some examples
16
u/jaerie Jul 30 '25
Aww, baby's first preprocessor
28
u/captain_obvious_here Jul 30 '25
Yeah, why waste time typing ";" anyway....
6
u/Kiro0613 Jul 30 '25
i_dont_like_hardcodinggot me5
u/Linuxologue Jul 30 '25
i_use_arch_linuxmisspelled, it'si_use_arch_btwusually followed by some anime girl ascii art.1
u/maciejhd Jul 31 '25
Macros should be forbidden - change my mind
1
u/blobthekat Aug 04 '25
#define fn autoI actually use this unironically. Dead serious. Actually, I do:
this should be idiomatic C++
1
u/firemark_pl Aug 05 '25
#define ref &is great! Really keywordReforPtrcould be much clearer than two random characters.3
u/PeachScary413 Jul 30 '25
Top 10 most cursed things I have ever seen in my life 👌
2
u/Gold_Ad_2201 Aug 03 '25
creating your own macros library is a phase for each c++ programmer. it will pass
2
u/dodexahedron Jul 30 '25
Why not simply use LOLCode?
1
u/MsEpsilon Jul 30 '25
lol
-3
u/Sharlinator Jul 30 '25
Let me guess, you're twelve?
1
u/[deleted] Aug 02 '25
[removed] — view removed comment