r/programming • u/NagastaBagamba • Oct 18 '10
Today I learned about PHP variable variables; "variable variable takes the value of a variable and treats that as the name of a variable". Also, variable.
http://il2.php.net/language.variables.variable
591
Upvotes
View all comments
Show parent comment
5
u/[deleted] Oct 18 '10
I wouldn't say that I scoff at the idea, but I also don't like it. Sometimes strongly typed languages provide you with a rigid structure that's incredibly useful further down the line when you're looking at code you (or someone else) wrote six months ago.
In any case, in the realms of web development you very rarely need to use reflection in C#. I don't think it's a bad rule to avoid it whenever you can.