Skip to content

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

Merged

Conversation

KenjiOhtsuka
Copy link
Contributor

I added cheatsheet in japanese.
Would you please confirm it?

@KenjiOhtsuka KenjiOhtsuka force-pushed the feature/add_japanese_cheatsheet branch from dd6b5fb to f5efadd Compare April 22, 2015 12:21
@SethTisue
Copy link
Member

for @eed3si9n, perhaps?

@eed3si9n
Copy link
Member

eed3si9n commented Jun 1, 2015

I can send out a review request to scalajp mailing list.

@eed3si9n
Copy link
Member

eed3si9n commented Jun 1, 2015

ですます調ですが、僕が訳した他のガイドは基本的にだである調で偉そうに書いてます。

@eed3si9n
Copy link
Member

eed3si9n commented Jun 1, 2015

レビューア各位、原文はここです: 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 を返す処理になります。; 大惨事の原因になります。 |
Copy link
Member

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" はここでは言語仕様上にある「手続き」の意味。

@heathermiller
Copy link
Member

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) 。 |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

原文は 「sole member」 ですが、「唯一の値」のほうが誤解を招かないと思いました。

@eed3si9n
Copy link
Member

eed3si9n commented Jun 2, 2015

@heathermiller Any time. I hope OP is not overwhelmed by a month of silence followed by a sudden surge of reviews :)

@heathermiller
Copy link
Member

Something is wrong with my notifications... Just saw this now! LGTM transitively through @eed3si9n ;) Thanks all!

heathermiller added a commit that referenced this pull request Jun 19, 2015
@heathermiller heathermiller merged commit 37daaf1 into scala:master Jun 19, 2015
@KenjiOhtsuka
Copy link
Contributor Author

すみません、忙しさのあまりフィードバックを取り入れられていませんでした。

7, 8月にはいただいたフィードバックを取り入れて再度pull requestを出します。

@heathermiller
Copy link
Member

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 ;)

@eed3si9n
Copy link
Member

@heathermiller lol. I'll note to avoid "any time" during the PR previews.
The OP says:

Sorry, I've been busy lately so I haven't taken in all the reviews. Hopefully I can send in a new pull request in July, August.

@heathermiller
Copy link
Member

Haha, sorry! Sounds good though – better to have the cheatsheet at least usable, even if it needs edits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
8 participants