Giter Club home page Giter Club logo

Comments (6)

kyuridenamida avatar kyuridenamida commented on May 28, 2024

確かに混ざってるのは良くないですね。既存のテンプレートの後方互換性は維持したいので、cppのコードジェネレーターに新しいテンプレートパラメータを追加する方向性が良さそうです。

from atcoder-tools.

kmyk avatar kmyk commented on May 28, 2024

互換性の維持は重要ですが、今回の提案は (2.) でも互換性を破壊するようなものではないです。

{{input_part}} という変数を消すとまずいですが、そうでなくてその値を変えるだけだからです。
たしかに出力は文字列としては変化しますがその実際的な意味は変わりません。 (ただしもしこれが「すべて cin を使ってた場合に scanf に乗り換える」だと cin.tie(0) のまわりで互換性の検討が必要です)

from atcoder-tools.

kyuridenamida avatar kyuridenamida commented on May 28, 2024

あ、かなり僕がよくわからないコメントを書いていたことが今わかりました。すみません忘れてください。

僕は提案2が好きで賛成です。
2つ目のコードジェネレーターをこさえるのは1はちょっとやりすぎな気がするので。

ドキュメントも最近テンプレート用のページを作ったので、言語ごとに使えるテンプレート変数一覧みたいなのをドキュメントに書けばユーザーとしてもわかりやすいはずです。

from atcoder-tools.

blue-jam avatar blue-jam commented on May 28, 2024

この仕様が原因でREが発生することがあるので、早めに修正した方がいいと思います。
例)ARC087 D

from atcoder-tools.

kmyk avatar kmyk commented on May 28, 2024

@blue-jam そのREの直接の原因はatcoder-tools側の仕様ではなくカスタムされたtemplate側の ios::sync_with_stdio(false); https://cpprefjp.github.io/reference/ios/ios_base/sync_with_stdio.html なので、その主張はあまり適切ではなさそうに読めます。
ただし「ios::sync_with_stdio(false); を意味を知らずにコピペする人は多いので統一してあげるとやさしい」という意図ならまったく同意します。

from atcoder-tools.

blue-jam avatar blue-jam commented on May 28, 2024

「ios::sync_with_stdio(false); を意味を知らずにコピペする人は多い

私のことです

from atcoder-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.