Merge branch 'master' into update-to-latest-solidity

This commit is contained in:
Nemil Dalal 2018-01-26 19:12:00 -05:00 committed by GitHub
commit 23c11c9a73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 15 additions and 14 deletions

View File

@ -75,8 +75,8 @@ List.head [] -- Nothing
-- K získání hodnot z dvojice použijte funkce first a second. -- K získání hodnot z dvojice použijte funkce first a second.
-- (Toto je pouze zkratka. Brzy si ukážeme, jak na to "správně".) -- (Toto je pouze zkratka. Brzy si ukážeme, jak na to "správně".)
fst ("elm", 42) -- "elm" Tuple.first ("elm", 42) -- "elm"
snd ("elm", 42) -- 42 Tuple.second ("elm", 42) -- 42
-- Prázná n-tice, neboli "unit", se občas používá jako zástupný symbol. -- Prázná n-tice, neboli "unit", se občas používá jako zástupný symbol.
-- Je to jediná hodnota svého typu, který se také nazývá "Unit". -- Je to jediná hodnota svého typu, který se také nazývá "Unit".

View File

@ -72,8 +72,8 @@ List.head [] -- Nothing
-- Access the elements of a pair with the first and second functions. -- Access the elements of a pair with the first and second functions.
-- (This is a shortcut; we'll come to the "real way" in a bit.) -- (This is a shortcut; we'll come to the "real way" in a bit.)
fst ("elm", 42) -- "elm" Tuple.first ("elm", 42) -- "elm"
snd ("elm", 42) -- 42 Tuple.second ("elm", 42) -- 42
-- The empty tuple, or "unit", is sometimes used as a placeholder. -- The empty tuple, or "unit", is sometimes used as a placeholder.
-- It is the only value of its type, also called "Unit". -- It is the only value of its type, also called "Unit".

View File

@ -255,7 +255,7 @@ There exists two main types of links: visible URL \\
% You can not add extra-spaces or special symbols into shadowing text since it % You can not add extra-spaces or special symbols into shadowing text since it
% will cause mistakes during the compilation % will cause mistakes during the compilation
This package also produces list of tumbnails in the output pdf document and This package also produces list of thumbnails in the output pdf document and
active links in the table of contents. active links in the table of contents.
\section{End} \section{End}

View File

@ -1366,7 +1366,7 @@ sub add($a, $b) { $a + $b }
say [[&add]] 1, 2, 3; #=> 6 say [[&add]] 1, 2, 3; #=> 6
## * Zip meta-operator ## * Zip meta-operator
## This one is an infix meta-operator than also can be used as a "normal" ## This one is an infix meta-operator that also can be used as a "normal"
## operator. It takes an optional binary function (by default, it just creates ## operator. It takes an optional binary function (by default, it just creates
## a pair), and will pop one value off of each array and call its binary ## a pair), and will pop one value off of each array and call its binary
## function on these until it runs out of elements. It returns an array with ## function on these until it runs out of elements. It returns an array with
@ -1659,7 +1659,7 @@ sub MAIN($name) { say "Hello, $name !" }
## Usage: ## Usage:
## t.pl <name> ## t.pl <name>
## And since it's a regular Perl 6 sub, you can haz multi-dispatch: ## And since it's a regular Perl 6 sub, you can have multi-dispatch:
## (using a "Bool" for the named argument so that we can do `--replace` ## (using a "Bool" for the named argument so that we can do `--replace`
## instead of `--replace=1`) ## instead of `--replace=1`)
subset File of Str where *.IO.d; # convert to IO object to check the file exists subset File of Str where *.IO.d; # convert to IO object to check the file exists

View File

@ -76,8 +76,8 @@ List.head [] -- Nothing
-- Acesse os elementos de um par com as funções first e second. -- Acesse os elementos de um par com as funções first e second.
-- (Este é um atalho; nós iremos para o "caminho real" em breve.) -- (Este é um atalho; nós iremos para o "caminho real" em breve.)
fst ("elm", 42) -- "elm" Tuple.first ("elm", 42) -- "elm"
snd ("elm", 42) -- 42 Tuple.second ("elm", 42) -- 42
-- Uma tupla vazia ou "unidade" às vezes é utilizada como um placeholder. -- Uma tupla vazia ou "unidade" às vezes é utilizada como um placeholder.
-- É o único valor de seu tipo, também chamado de "Unit". -- É o único valor de seu tipo, também chamado de "Unit".

View File

@ -106,6 +106,9 @@ False or True #=> True
# И строки тоже могут складываться! Хотя лучше не злоупотребляйте этим. # И строки тоже могут складываться! Хотя лучше не злоупотребляйте этим.
"Привет " + "мир!" #=> "Привет мир!" "Привет " + "мир!" #=> "Привет мир!"
# Строки можно умножать.
"aa" * 4 #=> "aaaaaaaa"
# Со строкой можно работать, как со списком символов # Со строкой можно работать, как со списком символов
"Это строка"[0] #=> 'Э' "Это строка"[0] #=> 'Э'

View File

@ -830,6 +830,7 @@ someContractAddress.callcode('function_name');
- [Solidity Docs](https://solidity.readthedocs.org/en/latest/) - [Solidity Docs](https://solidity.readthedocs.org/en/latest/)
- [Smart Contract Best Practices](https://github.com/ConsenSys/smart-contract-best-practices) - [Smart Contract Best Practices](https://github.com/ConsenSys/smart-contract-best-practices)
- [Solidity Style Guide](https://ethereum.github.io/solidity//docs/style-guide/): Ethereum's style guide is heavily derived from Python's [pep8](https://www.python.org/dev/peps/pep-0008/) style guide. - [Solidity Style Guide](https://ethereum.github.io/solidity//docs/style-guide/): Ethereum's style guide is heavily derived from Python's [pep8](https://www.python.org/dev/peps/pep-0008/) style guide.
- [EthFiddle - The JsFiddle for Solidity](https://ethfiddle.com/)
- [Browser-based Solidity Editor](https://remix.ethereum.org/) - [Browser-based Solidity Editor](https://remix.ethereum.org/)
- [Gitter Solidity Chat room](https://gitter.im/ethereum/solidity) - [Gitter Solidity Chat room](https://gitter.im/ethereum/solidity)
- [Modular design strategies for Ethereum Contracts](https://docs.erisindustries.com/tutorials/solidity/) - [Modular design strategies for Ethereum Contracts](https://docs.erisindustries.com/tutorials/solidity/)

View File

@ -12,12 +12,9 @@ translators:
lang: zh-cn lang: zh-cn
--- ---
Javascript于1995年由网景公司的Brendan Eich发明 Javascript 1995 年由网景公司的 Brendan Eich 发明最初它作为一种简单的用于开发网站的脚本语言而被发明出来是用于开发复杂网站的 Java 的补充但由于它与网页结合度很高并且在浏览器中得到内置的支持所以在网页前端领域 Javascript 变得比 Java 更流行了
最初发明的目的是作为一个简单的网站脚本语言来作为
复杂网站应用java的补充但由于它与网页结合度很高并且由浏览器内置支持
所以javascript变得比java在前端更为流行了
不过 JavaScript 可不仅仅只用于浏览器 Node.js一个基于Google Chrome V8引擎的独立运行时环境越来越流行 不过Javascript 不仅用于网页浏览器一个名为 Node.js 的项目提供了面向 Google Chrome V8 引擎的独立运行时环境它正在变得越来越流行
很欢迎来自您的反馈您可以通过下列方式联系到我 很欢迎来自您的反馈您可以通过下列方式联系到我
[@adambrenecki](https://twitter.com/adambrenecki), 或者 [@adambrenecki](https://twitter.com/adambrenecki), 或者