Comments (2)
Hi there,
Both of you are right, and what you want is already in the language :)
@kahogeoff 有
is already a shorthand for 吾有
, using which you can initialize variables like so:
有數五十。名之曰「甲」。
compare to the slightly different 吾有
syntax:
吾有一數。曰五十。名之曰「甲」。
However if you're defining a function this 有
shorthand cannot be used because function definitions typically don't fit into one token unlike 五十
.
@alluleia 今有
is already an alias for 吾有
. And you can use it exactly as 吾有
:
今有一數。曰五十。名之曰「甲」。
Incidentally 今有
was added the the syntax as a tribute to 九章算術, exactly what you mentioned there (while the 吾有一
syntax is partially a tribute to 譚嗣同's famous last words).
Thanks.
from wenyan.
应更之为"今有"
<九章算术>曰
今有積五萬五千二百二十五步。問︰為方幾何?
荅曰:二百三十五步。
<孙子算经>曰
今有雉、兔同笼,上有三十五头,下有九十四足。问:雉、兔各几何?答曰:雉二十 三,兔一十二
from wenyan.
Related Issues (20)
- 关于采用中文实现编程实用性的想法 HOT 3
- 看到个有趣的东西,作者看看 HOT 1
- Complex number, rational number and matrix implementation
- 文淵閣 Packages in Online IDE Produce TypeError HOT 2
- 考虑添加语音编程的支持
- 非常有趣 HOT 7
- 數字轉換問題
- 施「埃氏篩」於九十九,则循环不止 HOT 2
- Call cantonese from Wenyan. 在文言文中调用粤语编程语言
- 初試此法,用「書之」之不解 HOT 2
- 請問作者有無考慮與易語言在中文編程領域研發有相關合作? HOT 4
- 言出法随的编程语言吗?感觉是应用题编程啊,不怎么便于理解。我这样怎么样,甲乙丙丁已经不合适了。1234,ABCD将会融合进我们的生活 HOT 1
- 项目简介建议
- 提问:类似python中的input函数该怎么打呢 HOT 3
- 你們有沒有試過開發象棋 HOT 2
- 另一種文言編程語言
- 你是懂整活的
- 尋 file read 而不得 HOT 1
- wenyan
- 函數參數多種類型如何解決
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wenyan.