# \[ANN\] ppx\_optint

**URL:** <https://discuss.ocaml.org/t/ann-ppx-optint/13030>\
**Category:** Ecosystem\
**Tags:** announce\
**Created:** [September 16, 2023, 11:09am UTC](https://discuss.ocaml.org/t/ann-ppx-optint/13030 "2023-09-16T11:09:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![reynir](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/reynir/32/6496_2.png) [@reynir](https://discuss.ocaml.org/u/reynir)\
**Post date:** [September 16, 2023, 11:09am UTC](https://discuss.ocaml.org/t/ann-ppx-optint/13030/1 "2023-09-16T11:09:06Z")

</div>

I’m pleased to announce the release of ppx\_optint.0.2.0, a small ppx for [optint](https://github.com/mirage/optint) literals. Instead of writing `Optint.minus_one` or `Optint.Int63.minus_one` you can write `-1i` or `-1I` respectively. It may be handy if you write code with a lot of optint literals.

Version 0.2.0 tries to be smarter and will use `Optint.of_unsigned_int32` and `Optint.Int63.of_unsigned_int` over `_.of_string` when possible.
