Simplify dart import syntax #1378
Labels
area-language
Dart language related items (some items might be better tracked at github.com/dart-lang/language).
type-enhancement
A request for a change that isn't a bug
Milestone
This issue was originally filed by [email protected]
The dart import syntax can be simplified. I would have liked the go style import statements, which can cascade multiple imports and there is no need for the extra parenthesis over the name (the same can be done with source too). There is no need to imitate everything from java or other existing languages. This has hardly any learning curve.
For example
package main
import (
"bufio"
"flag"
"fmt"
"io"
"math/rand"
"os"
"strings"
"time"
)
looks much better than
library("swarmlib");
import('dart:coreimpl');
import('dart:json');
import('dart:html');
import('../../base/base.dart');
import('../../view/view.dart');
import('../../observable/observable.dart');
import('../../touch/touch.dart');
import('../../util/utilslib.dart');
source('App.dart');
source('BiIterator.dart');
source('ConfigHintDialog.dart');
source('HelpDialog.dart');
source('SwarmState.dart');
source('SwarmViews.dart');
source('SwarmApp.dart');
source('DataSource.dart');
source('Decoder.dart');
source('UIState.dart');
source('Views.dart');
source('CSS.dart');
The text was updated successfully, but these errors were encountered: