Fails: syntactic vs. semantic
if( condition ) {
component = new ComponentA();
component.onCreate();
} else
component = new ComponentB();
component.onCreate();
Written by Andreas Siebert
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Wtf
Authors
drdrej
1.023K
vitaly_obukhov
983
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#