Lemmy.World
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
RSS Bot@lemmy.bestiver.seBM to Hacker News@lemmy.bestiver.seEnglish · 9 months ago

Let's Write a Macro in Rust

hackeryarn.com

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

Let's Write a Macro in Rust

hackeryarn.com

RSS Bot@lemmy.bestiver.seBM to Hacker News@lemmy.bestiver.seEnglish · 9 months ago
message-square
0
link
fedilink
  • cross-posted to:
  • [email protected]
Let's write a macro in Rust - Part 1
hackeryarn.com
external-link
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.

Comments

alert-triangle
You must log in or # to comment.

Hacker News@lemmy.bestiver.se

hackernews@lemmy.bestiver.se

Subscribe from Remote Instance

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]
lock
Community locked: only moderators can create posts. You can still comment on posts.

Posts from the RSS Feed of HackerNews.

The feed sometimes contains ads and posts that have been removed by the mod team at HN.

Source of the RSS Bot

Visibility: Public
globe

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

  • 563 users / day
  • 1.67K users / week
  • 3.79K users / month
  • 9.35K users / 6 months
  • 884 local subscribers
  • 5.16K subscribers
  • 56K Posts
  • 28.5K Comments
  • Modlog
  • mods:
  • patrick@lemmy.bestiver.se
  • RSS Bot@lemmy.bestiver.seB
  • UI: 0.19.19-4-g32c157fc
  • BE: 0.19.19-9-gc55dd700c
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org