You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently added support for custom show/hide admonitions for other programming languages.
Here's one found on the Slices page:
Occasional narrow comparisons for other languages, or additional context for people coming from specific languages, may be very useful for some. Feel free to suggest more in this issue.
Go
slices: comparison
C++
arraylist: ~= std::vector
comptime: vs constexpr/consteval
errors: vs exceptions
JS
assignment: "undefined" isn't the same
C
comptime: comptime vs macros / converting macros to comptime
single-item pointers: strictly single-item
imports: vs include / note on code guards & circular references
allocators: compare with c_allocator and malloc/free
I don't know if you want to add to this guide, how to create basic custom allocator, like c_allocator/raw_c_allocator (more simple) - using std.mem.Allocator.
The example below shows a minimal version of both interfaces for custom allocators.
Recently added support for custom show/hide admonitions for other programming languages.
Here's one found on the Slices page:
Occasional narrow comparisons for other languages, or additional context for people coming from specific languages, may be very useful for some. Feel free to suggest more in this issue.
Go
C++
JS
C
Rust
related:
Zig for C++ programmers #65
Zig for C Programmers (proposal for new chapter) #46
The text was updated successfully, but these errors were encountered: