News for hackers. Stuff that matters.
Re:Show HN: Imba – I have spent 7 years creating a programmi... by nsonha on Tuesday August 17, 2021 @05:18PM (#28214977)
lack of types and it used to be ignorant of perf in the generated code (creating IIFE unnecessarily)
Re:Show HN: Imba – I have spent 7 years creating a programmi... by phil294 on Tuesday August 17, 2021 @06:19PM (#28215478)
Regarding types, you're right, though JSDoc can get you very far

Regarding perf (performance, I guess?) - are you speaking of the single, global one? As CS takes care of variable scoping automatically, I think it makes a lot of sense (and is deactivatable anyway)

Re:Show HN: Imba – I have spent 7 years creating a programmi... by nsonha on Wednesday August 18, 2021 @02:39AM (#28218263)
> JSDoc can get you very far

in the sense that you write them and parse them in your brain manually. JSDoc is useful to me because IDE supports it for javascript. Without IDE support it's just a bunch of fancy comments

Re:Show HN: Imba – I have spent 7 years creating a programmi... by phil294 on Wednesday August 18, 2021 @05:01AM (#28219018)
You could try using the https://github.com/phil294/coffeesense/ VSCode extension for that, released 7 days ago (disclaimer: I made it).
Re:Show HN: Imba – I have spent 7 years creating a programmi... by nsonha on Wednesday August 18, 2021 @09:14AM (#28220545)
Thanks, this looks really useful
Re:Show HN: Imba – I have spent 7 years creating a programmi... by nsonha on Tuesday August 17, 2021 @08:48PM (#28216533)
no coffeescript desugars into functions things like switch statements, do statements and some other things (that have nothing to do with functions)
Re:Show HN: Imba – I have spent 7 years creating a programmi... by arcanon on Wednesday August 18, 2021 @12:17AM (#28217732)
Just tried a switch statement, didnt desugar into functions. Maybe you haven’t been keeping up with the latest.