|
|
|
|
|
by sciolistse
601 days ago
|
|
probably gets better with use but having to remember not to put a loop as the last statement of a function, because it would make it return an array of the last statement of the loop body, caught me off guard enough times to get annoying. easy enough to add an extra line with just 'undefined' as the last statement of the function of course. but then you do need to remember that. |
|
People can adapt either way. You can write more concise code with implicit returns and "everything is an expression".