Rogue Syntax & Behaviour

Rogue's Syntax#

Rogue's syntax is inspired by Typescript, Kotlin and Rust.

Resources in particular are based on linear types which were popularized by Rust and implemented specifically for blockchains by Move for Libra and Rogue borrows heavily from it.

Unlike other blockchain languages (e.g. Solidity) Rogue proposes separation of scripts (or transaction-as-script) and methods. The former allows you to put more logic into your transactions and make them more flexible all the while saving you time and resources; and the latter allows developers to extend blockchain functionality or to implement custom methods (smart contracts) with a variety of options.

Essentially these documents will start with scripts as they're pretty user-friendly for a newcomer, and then we'll get to methods.