the.bay.news

Discussion: Upcoming @backingInt() and @fromBackingInt() convenience builtins

Ziggit
Discussion: Upcoming @backingInt() and @fromBackingInt() convenience builtins
I just saw these in the master branch standard library and documentation: They seem to use a new standard library construct: std.meta.BackingInt() Here’s an example of a function where they’re already being used: std.log.logEnabled() While this is nothing that couldn’t have been implemented in userland with some imaginative use of switch(@typeInfo(@TypeOf(arg))), it’s exciting to see new convenience builtins, which will surely be cited in the release notes as “part of the ongoing effort t...

I just saw these in the master branch standard library and documentation: They seem to use a new standard library construct: std.meta.BackingInt() Here’s an example of a function…

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.