Skip to content
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

Translate vim9.txt to section-2 #864

Merged
merged 44 commits into from
Jan 23, 2021
Merged

Translate vim9.txt to section-2 #864

merged 44 commits into from
Jan 23, 2021

Conversation

kyoh86
Copy link
Contributor

@kyoh86 kyoh86 commented Dec 4, 2020

2. 古い Vim script からの変更点 まで翻訳しました。
不慣れなので、あまり大きすぎるPRを出しても修正点が多すぎると思うので、ここまでで出させていただきます。

レビューをお願いします。

@kyoh86 kyoh86 changed the title Translate vim9.txt Translate vim9.txt to section-2 Dec 5, 2020
@kyoh86 kyoh86 marked this pull request as ready for review December 5, 2020 18:25
Copy link
Member

@h-east h-east left a comment

Choose a reason for hiding this comment

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

翻訳おつかれさまです。

@kyoh86
Copy link
Contributor Author

kyoh86 commented Dec 12, 2020

ご指摘ありがとうございました、一通り指摘いただいた点を修正しています。
再びのレビューをお願いします。

Copy link
Member

@h-east h-east left a comment

Choose a reason for hiding this comment

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

途中ですが、一旦公開します。

@kyoh86
Copy link
Contributor Author

kyoh86 commented Dec 21, 2020

度々すみません、一通りご指摘の修正とvim9.jax内の横展開をしました。

@kyoh86
Copy link
Contributor Author

kyoh86 commented Jan 19, 2021

一通り指摘は修正したから、マージしちゃおうかな

@h-east
Copy link
Member

h-east commented Jan 19, 2021

確認するのでもう少し(2~3日)お待ちください。

doc/vim9.jax Outdated
Comment on lines 527 to 529
8 || 0 Error!
'yes' && 0 Error!
[] || 99 Error!
Copy link
Contributor

Choose a reason for hiding this comment

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

おなじく(差分省略)

falsy か truthy として評価されます。これは JavaScripot とほぼ同じですが、空の
リストと辞書は falsy として評価されます:

型 真と評価される値 ~
Copy link
Contributor

Choose a reason for hiding this comment

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

それぞれ意味があるので、ここはちゃんと訳したほうがよさそうです。

Copy link
Contributor

Choose a reason for hiding this comment

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

あ、これは列挙されてる項目のtruthy条件のことです

Copy link
Contributor Author

@kyoh86 kyoh86 Jan 20, 2021

Choose a reason for hiding this comment

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

when there is a function nameが難しいな…

普通に考えるなら"何らかの関数(有無を問わない)への参照を持つ場合"でしか無いんですが、訳文的には「関数名があるばあい」になりますよね

def s:hoge()
  var Ref: func
  if !!Ref
    echom "empty Ref"
  endif
  Ref = function('not#existing#func')
  if !!Ref
    echom "not existing func"
  endif
  Ref = function("<SID>sample")
  if !!Ref
    echom "existing func"
  endif
enddef

function s:sample()
endfunction

call s:hoge()

これを呼ぶと
"not existing func"
"existing func"
と出力されるので、関数参照を得てもその関数が存在するかどうかにかかわらず真っぽい(普通そうだろうという動きではある)んで、"there is ~ name"ってどういうことなんでしょ。
本家のヘルプにPatchか…?

@h-east
Copy link
Member

h-east commented Jan 23, 2021

@k-takata そういえば、vimdoc-en (当然vimdoc-jaも)のトップページに vim9 へのリンクがないですね。(eval.txt と repeat.txt 内にはリンクがありますが)
本家にpatch送るべきですかね?

@h-east h-east merged commit 7eb1a0b into vim-jp:master Jan 23, 2021
@h-east
Copy link
Member

h-east commented Jan 23, 2021

@kyoh86 Thanks:+1:。2021 Jan 15版に更新されていますのでよろしければよろしくどうぞ。

@kyoh86 kyoh86 deleted the vim9 branch January 23, 2021 13:03
@k-takata
Copy link
Member

本家にpatch送るべきですかね?

そうですね

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

Successfully merging this pull request may close these issues.

4 participants