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: 結論をはっきり言うね。 === 結論をはっきり言うね。 : ==== ### ==== * 自由形式(Free Form) * 80文字超えてもコンパイル可 * 行番号も不要 ===== - 固定形式前提 ===== * 8–72カラムに収める * 73–80は使わない 👉 コンパイラは許すが、人間とツールが許さない ==== ### ==== * COPY句の中身が - 桁依存 - 継続行前提 👉 1行でも崩すと 意味が変わる ===== - 桁ずれで差分が壊れる ===== * 意味のない差分が大量発生 ===== - 無意識に72桁で読む ===== * それ以上は視界に入らない ===== - どうせ10年後に触れない ===== * 読める形で残す ==== ### ==== <syntaxhighlight lang="cobol"> IF A = B AND C = D AND E = F PERFORM PROCESS-A END-IF </syntaxhighlight> * 行頭6スペース * 72桁以内 * 固定形式風 👉 意味は自由形式だが見た目は古典 ==== <syntaxhighlight lang="cobol">IF A = B AND C = D AND E = F AND G = H AND I = J AND K = L ==== PERFORM PROCESS-A END-IF </syntaxhighlight> * 読めない * 差分が汚い * 将来事故る ==== - Free Form をサポート ==== * 80桁制限は仕様外 👉 でも「許可=推奨」ではない ==== : ==== だから: * エラーにならなくても * あえて80文字形式を守る 次に行くなら * 自由形式にしたら起きた事故例 * 固定形式でしか動かないCOPYの闇 * Free Form を安全に導入する手順 どれ行く?
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)