R6RS の port-has-port-position? 整理

実装のために必要だったのでメモ。

  • binary-port は基本的に #t でなければならない。
    • 例外:standard-port 系は #t である必要はない。実装依存
    • 例外:custom-port 系は get-position が定義されているかで判断
  • textual-port は基本的に実装依存
    • 例外:string port は #t
    • 例外:custom-port は get-position 次第