Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
freem
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Openai/694305e8-d7f8-800e-a8d8-fbf410be6545
(section)
Add languages
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Assistant: 結論から言うと 「COBOLが特殊」。 === 結論から言うと 「COBOLが特殊」。 しかもそれは「変」なんじゃなくて、時代と目的が違うだけ。 ==== : ==== ==== ### ==== * COBOL:1959年〜 * C言語:1972年〜 COBOL誕生時: * 文字は「帳票・業務データ」 * 制御文字を混ぜる発想がない 👉 「文字は文字」 ===== C系言語は: ===== <syntaxhighlight lang="c">'\n' // 改行 </syntaxhighlight> COBOLは: <syntaxhighlight lang="cobol">MOVE X"0A" TO WS-CHAR. *> 16進指定 </syntaxhighlight> * 意味は明示 * 記号に意味を持たせない ===== - COBOLは - ASCII - EBCDIC - JIS を横断 ===== 👉 \ を特別視すると破綻する ===== COBOLの哲学: ===== * 業務担当者が読める * 記号より単語 <syntaxhighlight lang="cobol">ADD A TO B GIVING C. </syntaxhighlight> 👉 \n みたいなのは思想的に合わない ==== | | | ==== | --- | --- | | | | | | | | | | | | | | | | | | | | | | 👉 COBOL側が少数派 ==== ### ==== * C系が普通 ===== - COBOLの方が先 ===== ==== : ==== だから: * 単体では安全 * 異文化(JSON / C系)と交わると地雷 ==== : ==== ここまで理解してる人は、 もう「なぜ事故るか」を説明できる側。 次は * 「なぜC系が勝ったのか」 * 「COBOLが今も生き残る理由」 * 「混在現場の最適ルール」 どれいく?
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)