bardiche's tumblr

HTMLでは「<」、「>」などはタグの記号なので、文字として表示する場合はそのまま使えない。「<」は「&lt;」、「>」は「&gt;」としなければならない。それではこの「lt」、「gt」にはどういう意味があるのだろうか。

 日本でも俗に、「>」を「大(だい)なり」、「<」を「小(しょう)なり」という。「&gt;」の「gt」は「greater than」の、「&lt;」の「lt」は「less than」の略なのである。日本語と対応しているのがわかるだろう。

 「GT」、「LT」は歴史が古く、1956年から始まったFortranですでに比較演算子として使用されている。40年余の歴史があるのである。コンピュータの世界で40年と言ったら、十分歴史があると言っていいだろう。

  1. kimrash reblogged this from kml
  2. komanbu reblogged this from kml
  3. kml reblogged this from nemoi
  4. nemoi reblogged this from bardiche-side-b
  5. wiles4416 reblogged this from windog0530
  6. rb26lab reblogged this from bardiche-side-b
  7. windog0530 reblogged this from bardiche-side-b
  8. bardiche-side-b posted this