logo
  • 教程列表
  • SO官方文檔
  • 常見的 GHC 語言擴充套件
    • RankNTypes
    • OverloadedStrings
    • BinaryLiterals
    • ExistentialQuantification
    • LambdaCase
    • FunctionalDependencies
    • FlexibleInstances
    • GADTs
    • TupleSections
    • OverloadedLists
    • MultiParamTypeClasses
    • UnicodeSyntax
    • PatternSynonyms
    • ScopedTypeVariables
    • RecordWildCards
  1. StackOverflow 文件
  2. Haskell Language 教程
  3. 常見的 GHC 語言擴充套件
  4. BinaryLiterals

BinaryLiterals

Created: November-22, 2018

標準 Haskell 允許你以十進位制(不帶任何字首),十六進位制(以 0x 或 0X 開頭)和八進位制(以 0o 或 0O 開頭)編寫整數文字。BinaryLiterals 擴充套件新增了二進位制選項(以 0b 或 0B 開頭)。

0b1111 == 15     -- evaluates to: True
  • ExistentialQuantification
  • OverloadedStrings

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明