Code Monkey home page Code Monkey logo

effectivescala's Introduction

Effective Scala

This is the repository for the Effective Scala document.

It is "typeset" in markdown using PEG markdown. It also requires the GNU Troff suite (groff).

Building

To render the document:

make

To publish to github pages:

make pub

Contributing

Want to contribute and improve the guide? Have a bug or a question?

Please create an issue here on GitHub: https://github.com/twitter/effectivescala/issues

License

Copyright 2012 Twitter, Inc.

Licensed under the CC-BY 3.0: http://creativecommons.org/licenses/by/3.0

effectivescala's People

Contributors

adamv avatar akiomik avatar akr4 avatar anson0370 avatar appigram avatar benolee avatar berngp avatar caniszczyk avatar flaneur2020 avatar hongjiang avatar jdanbrown avatar jeffstyr avatar joa avatar jon-ruckwood avatar jondkoon avatar lahosken avatar marcel avatar mariusae avatar mattknox avatar okapies avatar orrsella avatar paulfryzel avatar pavlov99 avatar pvorb avatar sbozhko avatar scova0731 avatar sethmilliken avatar sumkincpp avatar tanimoto avatar xuwei-k avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

effectivescala's Issues

用語法を統一する

用語法が統一されているかチェックする。

  1. 原則的に定訳に合わせる。
    • カタカナ表記でも、一般的な用語法ならそちらを使う。
    • ex. イテレータ(iterator)
  2. 英語表記が必要と思われる場合は、各節の初回登場時に併記する。
    • コードにキーワードやクラス名として登場する、日本語表記との対応関係が分かりにくい等。
    • ex. 不変(immutable)

Destructuring bindings の適切な翻訳

Destructuring bindings の適切な訳が見いだせていません。構造化代入、分配束縛などが見つかりますが、この文脈で何が適切かがわかりません。短い部分ですが、ご知見をいただけると嬉しいです。

オリジナル:

[original page](http://twitter.github.com/effectivescala/#Object oriented programming-Structural typing)

Destructuring bindings

Destructuring value bindings are related to pattern matching; they use the same mechanism but are applicable when there is exactly one option (lest you accept the possibility of an exception). Destructuring binds are particularly useful for tuples and case classes.

val tuple = ('a', 1) 
val (char, digit) = tuple

val tweet = Tweet("just tweeting", Time.now)
val Tweet(text, timestamp) = tweet

日本語訳:

translated page

Destructuring bindings

Destructuring bind(訳注:構造化代入、分配束縛などの訳がある)による値代入は、パターンマッチに関連している。 それらは同じメカニズムを利用しているが、(例外の可能性を許容しないために)正確にひとつの選択肢があるときだけ適用できる。 Destructuring bindは特にタプルやケースクラスで有用である。

val tuple = ('a', 1)
val (char, digit) = tuple

val tweet = Tweet("just tweeting", Time.now)
val Tweet(text, timestamp) = tweet

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.