Skip to content

Improve tvf! macro for negative numerical values - #88

Open
oschijns wants to merge 1 commit into
mainfrom
improve-tvf-macro
Open

Improve tvf! macro for negative numerical values#88
oschijns wants to merge 1 commit into
mainfrom
improve-tvf-macro

Conversation

@oschijns

Copy link
Copy Markdown
Contributor

Allow defining the sign of a numerical value without wrapping into into extra parenthesis.
from

  let buffer = tvf!(SimpleStringTvf {
      10 => (-10),
      11 => (-10.25),
      12 => (-2) as Signed,
      13 => (+2.125) as Float,
  });

to

  let buffer = tvf!(SimpleStringTvf {
      10 => -10,
      11 => -10.25,
      12 => -2 as Signed,
      13 => +2.125 as Float,
  });

…extra parenthesis

Signed-off-by: Olivier Schyns <olivier.schyns@worldline.com>
@oschijns oschijns self-assigned this Aug 31, 2026
@oschijns
oschijns requested a review from reneca August 31, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant