Skip to content
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

Simplify dart import syntax #1378

Closed
DartBot opened this issue Jan 30, 2012 · 6 comments
Closed

Simplify dart import syntax #1378

DartBot opened this issue Jan 30, 2012 · 6 comments
Assignees
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

Comments

@DartBot
Copy link

DartBot commented Jan 30, 2012

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');

@dgrove
Copy link
Contributor

dgrove commented Feb 1, 2012

Set owner to @gbracha.
Removed Type-Defect label.
Added Type-Enhancement, Area-Language, Triaged labels.

@gbracha
Copy link
Contributor

gbracha commented Feb 1, 2012

Added Accepted label.

@gbracha
Copy link
Contributor

gbracha commented May 29, 2012

If it's going to change, we need to decide before M1.


Added this to the M1 milestone.

@gbracha
Copy link
Contributor

gbracha commented Jun 26, 2012

Issue #3858 has been merged into this issue.

@gbracha
Copy link
Contributor

gbracha commented Jul 10, 2012

See spec draft 0.11


Added Done label.

@gbracha
Copy link
Contributor

gbracha commented Jul 10, 2012

Analyzer issue #4048.
VM issue #4049.
dart2js issue #4050.

See spec draft version 0.11 and above, section 12.

@DartBot DartBot added Type-Enhancement area-language Dart language related items (some items might be better tracked at github.com/dart-lang/language). labels Jul 10, 2012
@DartBot DartBot added this to the M1 milestone Jul 10, 2012
@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug and removed type-enhancement labels Mar 1, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

5 participants