Results 236 comments of Lingdong Huang

Hi there, Function parameters can have different types. You can specify the them like so ``` 欲行是術。必先得一數。曰「甲」。二言。曰「乙」。曰「丙」。一爻。曰「丁」。 ``` ``` (float a, string b, string c, bool d) ``` The goal...

Hi @lymslive, - putting 書之 before the string has a potential to create ambiguity with current usage. - I think `書曰` would sound like `《書》曰 ` which means `《尚書》曰`. But...

I think precompiling is a good idea! perhaps even directly into JS will be functionally the same? But yeah, I don't feel too urgent about it. Also I'm interested in...

@statementreply wow, deep questions. ## Value/reference semantic Currently in wenyan-lang arrays are aliased when assigned to a new variable, like in JavaScript, python, etc., and current behavior seems to reflect...

This is looking great! Let's add it to `wyg` package registry or maybe even the stdlib when the wenyan-lang implementation is ready. It should be straightforward to implement, but I'm...

@shyoshyo I like your solution! Or perhaps we can wrap [String.fromCharCode](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCharCode) to do the trick.

@lymslive It is already possible, the key is that `「」` needs to be matched at all times, so you can do the following: ``` 或云「「“「甲」”」」 蓋謂「「「「甲」」」」 吾有一物。名之曰“馬”。 ``` Compiles to:...

I think neither 又若 nor 或若 is conventionally used to mean "else if", so we can probably decide based on the semantic of the characters themselves (unless someone come up...

@lymslive You're exactly right. Languages like C and JavaScript gets `else if` for free because single statement does not need to be enclosed by `{}`. Languages that got rid of...

@lymslive `云云` is alias to `也`, so `}}` case is never a problem. You can spot this usage in many `./examples`. When there are three or more `}`, I would...