Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Entry-point#2809

L4stR1t3s started this conversation inLanguage design
May 2, 2023· 1 comment
Discussion options

I just noticed that "Run" has been chosen as the entry-point? I understand the use of a verb is preferred but I don't expect a function named "Run" to act as an entry-point.

"Run" is generally used in the context of starting a program, process, ... but not the actual execution of it. I don't expect a function named "Run" to wait for the execution to finish before returning. I expect a function named "Do" to wait for the execution to finish, and then return. Not advocating to use "Do" as entry-point, just pointing out that different verbs create different expectations because of their prior use.

You must be logged in to vote

Replies: 1 comment

Comment options

Just adding some context:#1869 was the leads question, and#1869 (comment) has their rationale. I don't think that other possible meanings ofRun were discussed there, I only see it for other possible names (Start,Exec, etc).

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Labels
None yet
2 participants
@L4stR1t3s@jonmeow

[8]ページ先頭

©2009-2025 Movatter.jp