Earlier quoted context omitted.
For “everything is an expression” https://github.com/tc39/proposal-do-expressions may be of interest, though discussion seems to have paused.
The odd thing is that Civet includes both do expressions and everything is an expression. I'd be happy with either, but both seems like a bad idea.
Civet: A Superset of TypeScript
231–237 of 237 posts
Re: Civet: A Superset of TypeScript
#232Earlier quoted context omitted.
You can have shadowing with explicitly declared variables. And there are languages that allow that, Rust to name one and I love that I can do that every time I use it.
I slightly misspoke. The issue was that you wanted shadowing, but because of the lack of declarations, some random inner variable could suddenly reference a variable with broader scope. For example, you might have an “x” in some inner loop within a function. Then later on, you’d add an “x” earlier in the function, not realizing that that name was used down below. Suddenly the inner loop is referencing that new variab…
Re: Civet: A Superset of TypeScript
#233Earlier quoted context omitted.
That’s certainly not true of Rust: Rust had a particular goal, easily recognised as worthwhile, which wasn’t possible with any existing languages. Everyone sensible agreed the language made a lot of sense, even if they weren’t sold on the practicality of its specific approach.
IIRC everyone was perplexed why Mozilla was spending time on what looked like a research/academic problem instead of focusing on Servo
Re: Civet: A Superset of TypeScript
#234Earlier quoted context omitted.
IIRC everyone was perplexed why Mozilla was spending time on what looked like a research/academic problem instead of focusing on Servo
I didn’t get involved with any of this stuff until mid-2013, but at the very least by then, it was well understood that Servo couldn’t reach its potential without Rust.
> Rust began as a personal project in 2006 by Mozilla Research employee Graydon Hoare, named after the group of fungi that are "over-engineered for survival". Mozilla began sponsoring the project in 2009, and would employ a dozen engineers to work on it full time over the next ten years
So by 2013 it was already 7 years old. I very much doubt the original personal project was viewed as "a lot of sense" etc.
Re: Civet: A Superset of TypeScript
#235Earlier quoted context omitted.
I didn’t get involved with any of this stuff until mid-2013, but at the very least by then, it was well understood that Servo couldn’t reach its potential without Rust.
Just to quote Wikipedia: > Rust began as a personal project in 2006 by Mozilla Research employee Graydon Hoare, named after the group of fungi that are "over-engineered for survival". Mozilla began sponsoring the project in 2009, and would employ a dozen engineers to work on it full time over the next ten years So by 2013 it was already 7 years old. I very much doubt the original personal project was viewed as "a lot…
Re: Civet: A Superset of TypeScript
#236Earlier quoted context omitted.
> CoffeeScript made writing and reading things much easier My point is that it kinda didn't. It looked prettier on the surface, but didn't actually solve any of the deeper problems of writing JavaScript. To write CoffeeScript you had to still know JavaScript and all its oddities. TypeScript solved those problems, and that's why it has taken off and had a meteoric rise to the point that it's practically synonymous wit…
> TypeScript solved those problem I don't think TS removed any peculiarities of JS. It just forced you to actually learn them which JS and CS didn't do.
Re: Civet: A Superset of TypeScript
#237Earlier quoted context omitted.
> I wrote a bunch of CoffeeScript back in the day, and everyone I've spoken to about it feels the same, that it was a bad idea in hindsight I don't think it was a bad idea in hindsight. JS of the era was a pain to use; CoffeeScript made writing and reading things much easier, which is the reason it took off. Since then things changed and many "CoffeeScript features" are now "JavaScript features". Only with knowledge…
> JS of the era was a pain to use; CoffeeScript made writing and reading things much easier It didn't. Anything you learn / are familiar with will be easier to write - Coffescript was easier to write for people who learned Coffescript. Which in hindsight wasn't time well spent as they would've eventually had to bite the bullet anyway & just learn JavaScript like everyone else. JavaScript is much much easier to write…