Skip to content

Synatctic feature requests. #1066

Open
Open
@ghost

Description

Dart is pretty simple, but there are a few additions that ould be nade to dart core.

  • exponent syntax as its easier to use.
var a=2, b=5;
var c = a**b; //c=32
  • slice syntax for strings and lists.
var a =[1,2,3,4,5];
var c = a[1:3]; //c = [2,3,4]
  • a straight forwards console input (super useful while learning dart initially)
var a = input('your name: ')
//prints 'your name: ' to console and takes what ever the user types after 
//and stores it in a.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureProposed language feature that solves one or more problems

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions