4 ms·
True. Most of the time I end up making a very thing wrapper over the original API, just for the sake of brevity. I honestly thought that's what I was meant to d
by radu_floricica 17y ago
True. Most of the time I end up making a very thing wrapper over the original API, just for the sake of brevity. I honestly thought that's what I was meant to do: the API should be optimized for power, and the local wrapper for usability in the local context.
But it's also a matter of style. I just wrote a function the other day to do the equivalent of:
Map m = makeMap( "key1", "value1",
"key2", "value2",
"key3", "value3" );
It's perfectly ok to write something like this in java using varargs, but because of ... I don't really know, habituation I guess, it took me learning Clojure to actually think of writing it.