Skip to content

Erlang bit syntax #5346

Closed
Closed

Activity

  1. pcwalton commented on Mar 12, 2013

    @pcwalton
    Contributor

    I feel as though this should probably be a syntax extension.

  2. jeltz commented on May 30, 2013

    @jeltz

    One of the strengths of the Erlang bit syntax is that they can be used for pattern matching to implement a parser. Would this work with a syntax extension?

  3. thestinger commented on Sep 2, 2013

    @thestinger
    Contributor

    This is still unimplemented.

  4. alexcrichton commented on Feb 1, 2014

    @alexcrichton
    Member

    We have binary literals, and I agree that this should be a syntax extension. We also have loadable syntax extensions now, and I'm not sure that this should be included in the standard library by default, so closing.

  5. alexcrichton commented on Oct 5, 2014

    @alexcrichton
    Member

    One was actually created recently as well!

    rust-lang/rfcs#346

  6. added a commit that references this issue on May 2, 2020
    bfd1123
  7. masonforest commented on Jan 29, 2023

    @masonforest

    Here's a first pass of a language extension I wrote that allows you to pattern match binaries/bitstrings modeled after Erlang's byte matching functionality: https://crates.io/crates/match_bytes

  8. added a commit that references this issue on Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-syntaxextArea: Syntax extensionsC-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions