Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selection Sort Example #248

Merged
merged 2 commits into from
Dec 20, 2019
Merged

Selection Sort Example #248

merged 2 commits into from
Dec 20, 2019

Conversation

ai-zixun
Copy link
Contributor

望兄台敬啟
First of all, thank you for the wonderful new language.

I have tried to write a Selection Sort in the WenYan language as an additional example and here is the code. I have tested it on the online IDE. Would you mind take a look? Any feedback or advice would be great! I will be happy to contributed more examples and to help to build the standard library using the WenYan language itself.

恭祝時祺

@LingDong- LingDong- merged commit 1b268ec into wenyan-lang:master Dec 20, 2019
@LingDong-
Copy link
Member

Hi, thanks so much for the new example!

Regarding the standard library, here's my plan: I'll first implement the import statement. Then, I'll create the library files lib/算經.wylib/位操作經.wy etc. These files contains function stubs/templates which people can contribute implementation to, A stub will be something like this:

吾有一術。名之曰「正弦」。欲行是術。必先得一數。曰「甲」。乃行是術曰。
	批曰「「此處或用泰勒展開。或用查表法」」
是謂「正弦」之術也。

This way, everyone will be able to contribute a function or two. And your help will be very much appreciated! I wouldn't be able to implement all the library functions myself.

I'd very much like to hear your opinion on this.

Thanks!

@ai-zixun
Copy link
Contributor Author

That would be a great idea!

Once you have created lib/算經.wy, lib/位操作經.wy , et cetera with those stubs. It would be easier for other members of the community to contribute to the standard library. Beyond that, once there are some example and standards in the lib. Other members can contributed by following the existing standard.

For example, other people can help to created some standard built-in object (HashMap, HashSet, Deque, etc.). Once people submit a pull request with lib/雜湊列表. you and other administrator of the project can help to improve on the naming scheme (e.g. decide to name it 雜湊列表 or 哈希列表).

Again. Thank you for this invention. It is one of the most interesting and exciting project I have seen on GitHub recently.

@LingDong-
Copy link
Member

@ai-zixun , I added import statement and created the files for standard lib, please check out #290 . Thanks :)

LingDong- added a commit that referenced this pull request Jan 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants