Skip to content

Rust Contracts syntax #137134

Description

@codeOverFlow

Hello, maybe a newbie question, but why use attributes instead of language syntax similar to where clause, and similar to what Ada does ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-discussionCategory: Discussion or questions that doesn't represent real issues.F-contracts`#![feature(contracts)]`T-langRelevant to the language team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions