|
|
|
|
|
by phkahler
2438 days ago
|
|
>> it's a pet-peeve of mine that people write large functions/expressions/statements as function parameters when not needed all in the name of conciseness -- I think it affects readability. Worst thing ever. I was trying a gfx-rs example to do some drawing. One smallish function took another function as a parameter (a closure actually) so they just wrote an entire drawing function inline. The pipes helped clue me in that something strange was going on. My own code pulled that function out into a clean definition eventually. As it should have been in example code. It's not in the name of conciseness. Not sure what it is, but it's not that. |
|