blackhole icon indicating copy to clipboard operation
blackhole copied to clipboard

Compile-time pattern type checking

Open 3Hren opened this issue 9 years ago • 0 comments

Given:

  • logging pattern: "some message with {} placeholders and {:d} even {:.3f} more".
  • formatting arguments: ["some", 2, 3.1415]

Required:

  • check that sizeof...(Args) == placeholdersCount().
  • for every placeholder check type requirements.

Every invalid pattern should result in compile error.

3Hren avatar Jan 21 '16 17:01 3Hren