alex / bagel

Bagels are delicious
BSD 3-Clause "New" or "Revised" License
22 stars 1 forks source link

Figure out import syntax #49

Closed alex closed 10 years ago

alex commented 10 years ago

Here are some of the proposals on the table

(they're in groups)

import twisted
from twisted import internet

import twisted
import twisted.internet
import twisted.internet.defer.{Deferred, succeed}

import Deferred, succed from twisted.internet.defer

from twisted.internet.defer:
    import Deferred, succeed

from twisted:
    from internet:
        from defer:
            import succeed
        import reactor

import twisted.internet:
    reactor
    defer

from twisted.internet.defer:
    import succeed
    import failure
    import returnValue
    import inlineCallbacks
    import gatherResults
alex commented 10 years ago

Going to go with:

import twisted
import twisted.internet
import twisted.internet.defer.{Deferred, succeed}

for now, can reconsider once we're better positioned to do science