Pauan
Pauan
@jedisct1 Because of the way that the web works, file size is very important, and so relying on the browser's functionality means smaller file sizes.
I believe the purpose of async/await is to efficiently interop with JavaScript Promises, which isn't possible for a compiler (it requires integration with the host). And similarly for JavaScript generators/iterators.
> Isn't this just an issue of WebAssemblyJavaScript interaction? The problem is that in order to run a Promise in user-land you need some sort of closure (e.g. `.then`). It...
Hi @bogdanalexe90, sorry for not getting back to you sooner on this. On April 21st we made some changes to the autoGuides plugin. After upgrading to the latest version, do...
If you want to use enum keys, there is the [enum-map](https://crates.io/crates/enum-map) crate. You can use `EnumMap` where `K` is your enum type, and `V` is the value type. The `Option`...
@thomasmost Unfortunately it cannot be used directly in a `static` or `const`. However, using `Lazy` (or `lazy_static!`) works fine: ```rust use once_cell::sync::Lazy; use enum_map::{Enum, EnumMap, enum_map}; #[derive(Debug, Enum)] enum Example...
> So, in summary, it is possible to be productive with stringref on the toolchain level, even in the world where stringref is not available on the wasm hosts. But...
Swift strings are an encoding-independent array of Unicode code points: https://docs.swift.org/swift-book/documentation/the-swift-programming-language/stringsandcharacters/ But the point of this proposal is that *every* language benefits from using stringref at the boundaries, even if...
> Not specifically, unless they want to interop with a language with JS-like strings at the boundary. A stringref is conceptually an array of Unicode scalar values. It does not...
> It's possible that the intention is for stringref to correspond with JS strings, but if that's the case, it should presumably be described as a sequence of UTF-16 code...