Dealing with strings #360
chung-leong
started this conversation in
Ideas
Replies: 1 comment
-
The current idea is to look up a struct type named pub const @"meta(zigar)" = struct {
pub fn isString(comptime T: type, comptime field_name) bool {
// ...
}
}; In the first version where the feature is introduced, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
One of the more problematic part of Zigar is the inability to convert arrays of bytes into a string on the JavaScript side. Most of the times
[]const u8
represents a string but we can't really make that assumption. It's entirely possible for the pointer to point to bytes that don't form a text string.Beta Was this translation helpful? Give feedback.
All reactions