Stephen Chung

Results 552 comments of Stephen Chung

Sorry! Not very familiar with this Git thing...! Am a Windows kind of person. Can you simply turn the module format in `tsconfig.json` to `umd`?

On this issue, I have recently encountered a different problem. The core of the prob is: `ahash` is too popular. My crate would pull in `ahash` with `default-features=false` but some...

Sorry I believe it is `with_seeds` (I made typo) which is completely deterministic. `with_seed` (singular) will use random numbers. You can look into the source to see that it just...

It is probably better to mention these in the documentation as it takes a while reading through the code to figure out. Especially the differences between `with_seed` and `with_seeds` (I...

It is parsing it as a statement. This works... ```rust let x = switch 1 {} * switch 2 {}; ```

> That's what I thought. Why is there a non-expression `switch` statement anyway? `1; 2; 3;` is a valid Rhai program, so clearly expressions can be statements too. That's because...

Yes, that's because things inside a block are statements... Why would you like to multiply two `switch` statements without assigning the result to anything?

> Why would you like to multiply two `switch` statements without assigning the result to anything? I'm not saying you _shouldn't_ or _can't_ do it... but usually there is no...

> ctually, I'm not using that anymore because for some reason it disallows `if` and `switch` _expressions_, but my primary purpose is still to evaluate expressions. Yes, expressions are intended...

So you want to evaluate expressions which may consist of `switch`? That would be a bit involved, as the action blocks in a `switch` may be statements, so you'll end...