Lemmy.World
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
hackeryarn to Rust@programming.dev · 11 months ago

Let's write a macro in Rust - Part 1

hackeryarn.com

external-link
message-square
0
link
fedilink
  • cross-posted to:
  • [email protected]
23
external-link

Let's write a macro in Rust - Part 1

hackeryarn.com

hackeryarn to Rust@programming.dev · 11 months ago
message-square
0
link
fedilink
  • cross-posted to:
  • [email protected]
Macros are required to do some very helpful things in Rust, but this isn’t an article about any of those things. I became ennamored with macros many years ago when I read Practical Common Lisp and saw the implementation of a SQL DSL that works with built in data structures. The whole implementation took less than a screen of code and absolutely blew away my expectations of what it took to create DSLs.
alert-triangle
You must log in or # to comment.

Rust@programming.dev

rust@programming.dev

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]

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

[email protected]

Credits
  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
Visibility: Public
globe

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

  • 12 users / day
  • 137 users / week
  • 354 users / month
  • 1.08K users / 6 months
  • 1.23K local subscribers
  • 8.13K subscribers
  • 1.34K Posts
  • 5.51K Comments
  • Modlog
  • mods:
  • snowe@programming.dev
  • Ategon@programming.dev
  • EdTheLegendary@programming.dev
  • torcherist@programming.dev
  • UI: 0.19.19-4-g32c157fc
  • BE: 0.19.19-9-gc55dd700c
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org