diff options
| author | bptato <nincsnevem662@gmail.com> | 2024-04-15 22:09:32 +0200 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2024-04-15 22:13:51 +0200 |
| commit | 0d8ebdce2897244d8297eecd175441e541292b94 (patch) | |
| tree | 8331642e3a2163530651801c21556ef39c8ecdaa /src/types | |
| parent | 8df9ef9cbbd284afac4d26494d45253a43aa3146 (diff) | |
| download | chawan-0d8ebdce2897244d8297eecd175441e541292b94.tar.gz | |
js: remove automatic function -> closure conversion
It's a bad idea for several reasons:
* it's inefficient; must allocate an environment for a closure in Nim,
even though we already have one in JS
* writing macros for automatically creating functions with variadic
arguments is suprisingly difficult (see the entire `js/javascript'
module)
* it never really worked properly, because we never freed the associated
function pointer.
We hardly used it anyway, so the easiest fix is to get rid of it
completely.
Diffstat (limited to 'src/types')
0 files changed, 0 insertions, 0 deletions