Skip to content

v0.1.0

Choose a tag to compare

@Ryoga-exe Ryoga-exe released this 09 Mar 13:53
· 18 commits to main since this release

The first release of proconio-zig.

Added

  • proconio.init
    • Returns a Proconio instance that provides an easy way to read values from stdin.
  • proconio.initInteractive
    • An interactive version of proconio.init.
    • The normal proconio.init reads the entire input at once in judge environment to optimize I/O performance. However this does not work well with interactive probrems.
  • proconio.ProconioAny
    • It has deinit and input method to handle input and memory management.

Supported types for input:

Type Support Notes
void ✅ Ignored input token
int ✅ Parsed using std.fmt.parseInt with base = 0
float ✅ Parsed using std.fmt.parseFloat
bool ✅ Custom conversion function can be overridden
enum ✅ If a number is provided, it attempts to convert it to an enum value
array ✅ —
optional ✅ If parsing fails, the value is set to null
vector ✅ —
struct 🟡 Partial support
pointer ❌ Not supported

Full Changelog: https://github.com/Ryoga-exe/proconio-zig/commits/v0.1.0