-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "why Cadence" section to Cadence docs #2039
Conversation
added line breaks to the first paragraph
blocking #2040 |
@@ -0,0 +1,16 @@ | |||
## Why should you use Cadence for building smart contracts ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## Why should you use Cadence for building smart contracts ? | |
--- | |
title: Why Use Cadence? | |
--- | |
## Why should you use Cadence for building smart contracts ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer to use the more descriptive title, the reasons are revolving around the benefits specifically for smart-contract development.
Codecov Report
@@ Coverage Diff @@
## master #2039 +/- ##
=======================================
Coverage 77.61% 77.61%
=======================================
Files 303 303
Lines 63164 63164
=======================================
Hits 49024 49024
Misses 12394 12394
Partials 1746 1746
Flags with carried forward coverage won't be shown. Click here to find out more. Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:master commit 0c5d3e5 Collapsed results for better readability
|
|
||
### 2) Composability | ||
|
||
Cadence enables composability. Resources (which are arbitrary user-defined data types) are stored directly in users’ accounts, and can flow freely between contracts: They can be passed as arguments to functions, returned from functions, or even combined in arbitrary data structures. This makes implementing business logic easier, more natural and promotes reuse of existing logic. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cadence enables composability. Resources (which are arbitrary user-defined data types) are stored directly in users’ accounts, and can flow freely between contracts: They can be passed as arguments to functions, returned from functions, or even combined in arbitrary data structures. This makes implementing business logic easier, more natural and promotes reuse of existing logic. | |
Cadence enables composability. Resources (which are arbitrary user-defined data types) are stored directly in users’ accounts, and can flow freely between contracts: they can be passed as arguments to functions, returned from functions, or even stored in arbitrary data structures. This makes implementing business logic easier, and promotes reuse of existing logic. |
|
||
### 3) **Simplicity** | ||
|
||
Cadence’s syntax is inspired by popular modern general-purpose programming languages like **[Swift](https://developer.apple.com/swift/)**, **[Kotlin](https://kotlinlang.org/)**, and **[Rust](https://www.rust-lang.org/),** so developers will find the syntax and the semantics familiar. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cadence’s syntax is inspired by popular modern general-purpose programming languages like **[Swift](https://developer.apple.com/swift/)**, **[Kotlin](https://kotlinlang.org/)**, and **[Rust](https://www.rust-lang.org/),** so developers will find the syntax and the semantics familiar. | |
Cadence’s feature set and language design are inspired by popular modern general-purpose programming languages like **[Swift](https://developer.apple.com/swift/)**, **[Kotlin](https://kotlinlang.org/)**, and **[Rust](https://www.rust-lang.org/),** so developers will find the syntax and semantics familiar. |
Description
Adding section to the docs on why should devs use Cadence. The 4th top-level tile is added in #2040.
master
branchFiles changed
in the Github PR explorer