statementreply
statementreply
Currently, 彼 functions takes a Unix timestamp (UTC), and converts to Chinese calendar date/time of local time, so they are affected by the runtime time zone setting.
> Closure capture... What do you find wrong? Nothing wrong. As we are already taking different paths from JavaScript (e.g. towards strong typing), I believe that eventually we'll need to...
It doesn't work for function parameter of object type. Code: ``` 吾有一術。名之曰「座標之逆」。欲行是術。必先得一物。曰「座標」。是術曰。 夫「座標」之「「南」」。乘其以負一。名之曰「北」。 夫「座標」之「「東」」。乘其以負一。名之曰「西」。 吾有一物。名之曰「逆」。其物如是。 物之「「南」」者。數曰「北」。 物之「「東」」者。數曰「西」。 是謂「逆」之物也。 乃得「逆」。 是謂「座標之逆」之術也。 ``` Error message: ``` [Syntax Error] [Type] Property "南" does...
> @statementreply , the bug is now fixed in the newest commit [182d100](https://github.com/LingDong-/wenyan-lang/commit/182d100ed3982cfd69e9dcc860d6484ec3203838) > > It should now compile without errors and spit out the (more) correct signature: I got...
The input of 彼年何年 is Unix timestamp. See also https://github.com/LingDong-/wenyan-lang/pull/487#issuecomment-570838787
## Calendar The rules and formula for calculation of Chinese calendar have been changed dozens of times in history. The last major revision took effect in 1645 (時憲曆), and there...
I'm going for a LUT based method for #466. It is inefficient if each call to the calendar library invokes some complicated astronomical computation. Maybe we could implement a lower...
> > The convertibility requirements are bogus but most of the callability requirements are real, I think? > > `binary_op(init, init)` requires `binary_op` to accept two lvalues of type `T`,...
> > > > The convertibility requirements are bogus but most of the callability requirements are real, I think? > > > > > > > > > `binary_op(init, init)`...
> I found the following bug - related enough to be mentioned here instead of in a separate issue: > [...] > This appears to be "just a bug" but...