Lemmy.World
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Metasyntactic to Ziglang · 3 years ago

Three Different Cuts: Rust, Go, Zig

matklad.github.io

external-link
message-square
0
link
fedilink
7
external-link

Three Different Cuts: Rust, Go, Zig

matklad.github.io

Metasyntactic to Ziglang · 3 years ago
message-square
0
link
fedilink
Three Different Cuts
matklad.github.io
external-link
In this post, we'll look at how Rust, Go, and Zig express the signature of function cut --- the power tool of string manipulation. Cut takes a string and a pattern, and splits the string around the first occurrence of the pattern: cut(
alert-triangle
You must log in or # to comment.

Ziglang

zig

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 5 users / week
  • 7 users / month
  • 9 users / 6 months
  • 30 local subscribers
  • 66 subscribers
  • 5 Posts
  • 4 Comments
  • Modlog
  • mods:
  • hur
  • UI: 0.19.15-5-g3ad4d1d2
  • BE: 0.19.15-4-g508853653
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org