Hongbo Zhang

Results 181 comments of Hongbo Zhang

The machine I developed on Linux used v10 which I think it is a reasonable choice

For the CI, we only need test the oldest supported engine, it is not very economic to test all engines, since in general, rescript compiler is Node version agnostics.

done in that repo. Edit: reopened in case you need update some docs

@gaku-sei it is to provide good interop with JS API which expects enums or return enums. There is currently no easy way to do this without a conversion; and it...

@IwanKaramazow the main use case is for passing and receiving enums. This is is the quote from some users: >i think positive integers covers 99% of our use cases Float...

@gaku-sei I think this still works since you mentioned concatenation. ``` 1+"px" === "1" + "px" ```

We could support #"1" syntactically, but it will be encoded as 1, so it may bring confusion instead of consistency. Note for structural types, the encoding has to be simple...

@tomgasson We are interested in this PR. Is there anyway to avoid introducing a keyword `guard`? Edit: seems assert is already a keyword. how about this: ``` assert denom !...

https://stackoverflow.com/questions/32256834/swift-guard-let-vs-if-let See this discussion, it seems only the benefit of `guard let` justifies the complexity. With regard to the concrete syntax, `guard` may look nicer but you have to pay....

For people who are interested in this PR, this answer explains the motivation very well https://stackoverflow.com/questions/32256834/swift-guard-let-vs-if-let/38356532#38356532 it serves as a sugar for fp's early return