Skip to content
This repository has been archived by the owner on Jul 8, 2021. It is now read-only.

Why getLength instead of length? #1

Closed
ckknight opened this issue Aug 29, 2017 · 1 comment
Closed

Why getLength instead of length? #1

ckknight opened this issue Aug 29, 2017 · 1 comment

Comments

@ckknight
Copy link

ckknight commented Aug 29, 2017

Especially given the terseness of other operations such as html or text, length fits into that paradigm, though of course fails it compared to getNode.

Also, it's what the property actually is in JavaScript. It just is accessed differently in JS than BS, so that can be abstracted away such that BS users don't have to care.

This is all highly subjective and I don't know if there's a standard in place for this yet.

@rhysforyou
Copy link
Owner

Definitely agree with this, I've changed it on master, so expect the change to show up in 0.2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants