|
|
|
|
|
by nadinengland
187 days ago
|
|
I love that this is part of the syntax. I typically use closures to do this in other languages, but the syntax is always so cumbersome. You get the "dog balls" that Douglas Crockford always called them: ```
const config = (() => {
const raw_data = ... ...
return compiled;
})()'const result = config.whatever; // carry on return result;
``` Really wish block were expressions in more languages. |
|