DanielXMoore / Civet

A TypeScript superset that favors more types and less typing
https://civet.dev
MIT License
1.33k stars 28 forks source link

coffeeDo bug #1242

Closed edemaine closed 1 month ago

edemaine commented 1 month ago
"civet coffeeDo"
do (x) ->
  setTimeout => console.log x

CoffeeScript compilation:

(function(x) {
  return setTimeout(() => {
    return console.log(x);
  });
})(x);

Civet compilation:

((x)(function() {
  return setTimeout(() => console.log(x))
}))()

It's not any better with =>.