[sclug] WAT !!!

Graham Swallow lists at information-cascade.co.uk
Wed Feb 1 13:23:57 UTC 2012


For those who dislike C++ because of its function overloading,

?bool obj.set_val( int );
?bool obj.set_val( float );
?bool obj.set_val( const char * );
?bool obj.set_val( expr & );
?bool obj.set_val( xml_node * );

and also the ways it allows use of operators (+ = *= [j] )...  for other types,

class array33 { ...
?array33 & operator *= ( const array33 & rhs );
?array33 & operator *= ( const vect3 & rhs );
}

here is an eg of where scripted languages do (something) (with added WAT ness)

? ? ? ? https://www.destroyallsoftware.com/talks/wat

but being scripted languages, theres a lot less pre-declarations involved

Graham



More information about the Sclug mailing list