frictionlessdata / datapackage-js

A JavaScript library for working with Data Package.
http://frictionlessdata.io/
MIT License
43 stars 15 forks source link

Consider renaming async Resource.table to async Resource.getTable() #42

Closed roll closed 7 years ago

roll commented 7 years ago

Overview

For now async getter could be confusing:

const table = await dp.resources[0].table

to

const table = await dp.resources[0].getTable()

But it should discussed first because option 1 is closer to Python version.

Tasks

rufuspollock commented 7 years ago

@roll my 2c is the .table stuff is nicer and one can just accept this stuff is all async and liberally sprinkle await in client codebases ...

roll commented 7 years ago

WONTFIX