senooken JP Social
  • FAQ
  • Login
senooken JP Socialはsenookenの専用分散SNSです。
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Masaki Hara (qnighy@qnmd.info)'s status on Tuesday, 12-Mar-2019 10:10:59 JST Masaki Hara Masaki Hara

    https://github.com/rust-lang/rust/issues/58278
    最近追加された dbg!() マクロはHaskellのDebug.traceShowIdのように、デバッグ出力をしてそのまま値を返す。これはデバッグ出力を無視すれば純粋なので定数式に昇格してはどうかという提案が出ている。しかしそうすると実行時だけ副作用をもつ定数式になってしまう

    In conversation Tuesday, 12-Mar-2019 10:10:59 JST from qnmd.info permalink

    Attachments

    1. Tracking issue for making `dbg!(x)` work in `const fn` · Issue #58278 · rust-lang/rust
      from GitHub
      We should make dbg!(expr) work in const fn by using some lang_item that is on the body of a function that contains the contents of dbg!(...). We also need to make it work with inlining. This sorta ...

    Feeds

    • Activity Streams
    • RSS 2.0
    • Atom
    • Help
    • About
    • FAQ
    • TOS
    • Privacy
    • Source
    • Version
    • Contact

    senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.

    Creative Commons Attribution 3.0 All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.