-
Notifications
You must be signed in to change notification settings - Fork 1k
add japanese cheatsheet #418
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
add japanese cheatsheet #418
Conversation
dd6b5fb
to
f5efadd
Compare
for @eed3si9n, perhaps? |
I can send out a review request to scalajp mailing list. |
ですます調ですが、僕が訳した他のガイドは基本的にだである調で偉そうに書いてます。 |
レビューア各位、原文はここです: http://docs.scala-lang.org/cheatsheets/ |
| <span class="label success">Good</span> `val x = 5`<br> <span class="label important">Bad</span> `x=6` | 定数 | | ||
| `var x: Double = 5` | 明示的な型 | | ||
| <span id="functions" class="h2">関数</span> | | | ||
| <span class="label success">Good</span> `def f(x: Int) = { x*x }`<br> <span class="label important">Bad</span> `def f(x: Int) { x*x }` | 関数定義<br> 隠れたエラー: = を書かないと Unit を返す処理になります。; 大惨事の原因になります。 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
原文: hidden error: without = it’s a Unit-returning procedure; causes havoc
訳案: 落とし穴: = を書かないと Unit を返す手続きになり、大惨事の原因となる。
補足: "procedure" はここでは言語仕様上にある「手続き」の意味。
Hi guys, I'm happy to pull this in whenever @eed3si9n (or anyone else from the scalajp mailing list) LGTMs it :) Thanks a lot for the review, Eugene! |
| `xs(2)` | 括弧を使って添字を書きます。 ([slides](http://www.slideshare.net/Odersky/fosdem-2009-1013261/27)) | | ||
| `1 :: List(2,3)` | 先頭に要素を追加 | | ||
| `1 to 5` _次と同じ_ `1 until 6` <br> `1 to 10 by 2` | Range の簡易記法 | | ||
| `()` _(中身のない括弧)_ | Unit 型 の唯一のメンバ (C/Java でいう void) 。 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
原文は 「sole member」 ですが、「唯一の値」のほうが誤解を招かないと思いました。
@heathermiller Any time. I hope OP is not overwhelmed by a month of silence followed by a sudden surge of reviews :) |
Something is wrong with my notifications... Just saw this now! LGTM transitively through @eed3si9n ;) Thanks all! |
…heet add japanese cheatsheet
すみません、忙しさのあまりフィードバックを取り入れられていませんでした。 7, 8月にはいただいたフィードバックを取り入れて再度pull requestを出します。 |
Ah crap, I just realize I misunderstood @eed3si9n's "any time". I thought he meant to pull it in anytime. Oops, I suppose that means that @KenjiOhtsuka still has some edits to make ;) |
@heathermiller lol. I'll note to avoid "any time" during the PR previews.
|
Haha, sorry! Sounds good though – better to have the cheatsheet at least usable, even if it needs edits. |
I added cheatsheet in japanese.
Would you please confirm it?