-
Notifications
You must be signed in to change notification settings - Fork 65
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
Conversation
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.
翻訳おつかれさまです。
ご指摘ありがとうございました、一通り指摘いただいた点を修正しています。 |
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.
途中ですが、一旦公開します。
Co-authored-by: h_east <[email protected]>
度々すみません、一通りご指摘の修正とvim9.jax内の横展開をしました。 |
一通り指摘は修正したから、マージしちゃおうかな |
確認するのでもう少し(2~3日)お待ちください。 |
doc/vim9.jax
Outdated
8 || 0 Error! | ||
'yes' && 0 Error! | ||
[] || 99 Error! |
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.
おなじく(差分省略)
falsy か truthy として評価されます。これは JavaScripot とほぼ同じですが、空の | ||
リストと辞書は falsy として評価されます: | ||
|
||
型 真と評価される値 ~ |
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.
それぞれ意味があるので、ここはちゃんと訳したほうがよさそうです。
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.
あ、これは列挙されてる項目のtruthy条件のことです
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.
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か…?
Co-authored-by: Tsuyoshi CHO <[email protected]>
Co-authored-by: h_east <[email protected]>
@k-takata そういえば、vimdoc-en (当然vimdoc-jaも)のトップページに vim9 へのリンクがないですね。(eval.txt と repeat.txt 内にはリンクがありますが) |
@kyoh86 Thanks:+1:。 |
そうですね |
2. 古い Vim script からの変更点
まで翻訳しました。不慣れなので、あまり大きすぎるPRを出しても修正点が多すぎると思うので、ここまでで出させていただきます。
レビューをお願いします。