3 ms·
> RepetitiveStupidityFactory myStupidityFactory = new RepetiriveStupidityFactory; Yeah because (let v (make-instance 'RepetitiveStupidFactory)) is so ob
by incepted 10y ago
> RepetitiveStupidityFactory myStupidityFactory = new RepetiriveStupidityFactory;
Yeah because
(let v (make-instance 'RepetitiveStupidFactory))
is so obviously superior, right?
- dschiptsov 10y agoObviously. Less repetitive, less verbose. And, most importantly, one could hide all the irrelevant details inside a macro which is equivalent to extending a language with a new control structure.
- incepted 10y agoThe Lisp version is less verbose because it's dynamically typed (in other words, it's less verbose because it contains less information that would allow this code to be proven correct). By the way, these days, we write things like val l = ArrayList<String>() If verbosity is your number one criterion to write your code, just skip all error checking and your code will become super concise.