0

metasyntactic variable

I still do not understand what is a metasyntactic variable :( or what exactly is a placeholder

1st May 2018, 3:34 PM
simona
simona - avatar
1 Odpowiedź
0
used in examples without context to demostrate logic or concept when variable names are not important. for example, demonstrating if else in python if foo: bar else: biz the code will work if say foo = user_is_authorized #boolean bar = display_page() #return page biz = unauthorized() #return error image opening a production code to fix a bug and insted using proper variable names the person who wrote it used foo, bar and biz.. not cool
1st May 2018, 4:24 PM
Qwertiony
Qwertiony - avatar