-
Notifications
You must be signed in to change notification settings - Fork 0
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
メソッドの命名を短くする提案 #23
Labels
type: Enhancement
New feature or request
Comments
一案です. 文字列は追いやすくなりました. let editor = Editor()
.t("white")
.f([.fontColor: UIColor.red]).t("red").fe()
.t("white") 使いやすいかどうかは微妙なところです. |
こうしたらいいかもしれない。 let editor = Editor()
.syntaxSugar
.t("white")
.f([.fontColor: UIColor.red]).t("red").fe()
.t("white") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ビルダーパターンでだいぶコードが短くなりましたが, まだまだ長く読みづらいです.
もっと短くする案も考えた方がいいかもしれません.
注意したいのは, これ以上短くすると, コード規約に反してしまうということです.
The text was updated successfully, but these errors were encountered: