Results 236 comments of Lingdong Huang

Native API's are not portable across different target languages, and are soon to be replaced by wenyan standard library functions. You can check out development of stdlib (or even better,...

Hi @cuixiping , Don't worry, there are several solutions. 1. I wrote this little helper that turns any JS function into a curried one: ``` function curry(f,arity=-1){ if (arity ==...

Hi @cuixiping, Your solution looks good, sorry for the inconvenience. Also, I think it might be a good idea to put all these wrapped functions like this in the same...

The second argument to `curry` is the `arity` (number of arguments). So you can do `curry(xxx.yyy, 3)` `curry(xxx.yyy, 2)` etc.

Nice trick :) So glad you figured it out!

Hi @s192516, Thanks for the translation! You got almost everything right 👍! Just a couple tiny corrections: - 鼠、蟹、钻、鱼,或以速称。蛇、象、骆、犀,各争文采。-> This is actually 互文, meaning that it should be read as...

Nice trick! Here's a version for unix systems: ```bash wenyan "$0"; exit 或云『爲』蓋謂『為』。 吾有一術。名之曰「執行測試」。是術曰。 夫『天地,好在否。』。書之。 是謂「執行測試」之術也。 爲是三遍。 施「執行測試」。 云云。 ``` and ```bash chmod +x test.wy ./test.wy ``` XD **EDIT:** One...

Hi @wglnngt, maybe this library https://github.com/GLanguage/jiaohu-wy suits your needs? It can be installed via `wyg`. Thanks!

Great proposal! I like the 山海經 style. There also has been a proposal to add object literals. I'm putting the link here as a reference, to make sure the wording/syntax...