Results 231 comments of Lingdong Huang

Update: Object literals are now supported: see https://github.com/LingDong-/wenyan-lang/issues/20#issuecomment-567734481 Classes can be simulated to certain extent with factories. Real classes are still on the plan, stay tuned. Thanks.

Thanks for your interest! Please check out the snippet site https://wenyan-snippets.glitch.me/ where people can share bits of code. Currently there is not much there, but hopefully we can build a...

Sometimes it is difficult to tell whether you like programming or not unless you've tried it. After all, all programmers were born as non-programmers. wenyan-lang could be a good place...

@cuixiping that's exactly the correct way of chaining operators, thanks for the example! @lymslive now that wenyan-lang is more type strict, 物 will have a fixed signature and will be...

@lymslive good questions, - The idea behind putting certain things in the syntax and certain things in stdlib is that, we'll have just enough syntax as a bootstrap, so the...

Make sure the tests still work next year :)

Please consider adding test cases for the `彼` versions (e.g. 彼年何年) instead. These should be current-date-agnostic. The `今` versions directly call `彼` versions, so their correctness is trivial to prove...

Thanks so much for the new tests! Just wondering about a couple things: Is there a reason the examples are not collected in one place but instead spanned across a...

Understood. I'll look into it and make some fixes, thanks!

@antfu. Thanks for the review! I think it might be better to test the calendar similar to how we test hanzi2num, perhaps like so (haven't tried it, just an idea):...