Hejsil / mecha

A parser combinator library for Zig
MIT License
413 stars 18 forks source link

Remove map and mapConst redundant type argument #44

Closed zenMaya closed 1 year ago

zenMaya commented 1 year ago

I don't know if this PR will be accepted, but I thought I'll try anyway. Since there already is a ReturnType function, I don't see a reason not to infer type from context.

Hejsil commented 1 year ago

Looks good. Thanks!