4 ms·
So which would you prefer: upper([1,2]) (so `upper` is a static builtin) or being unclear on whether its "".len or "".length or "".size or "".size() Like I sa
by joshuamorton 7y ago
So which would you prefer:
upper([1,2]) (so `upper` is a static builtin) or being unclear on whether its "".len or "".length or "".size or "".size()
Like I said, there is consistency: interfaces are given top level things (builtin functions, operators, language features/keywords), while object methods don't.
To give a recent anecdote, Rust's `x.await`, which is more "consistent", but everyone is complaining because in most languages async interfaces are exposed via something like `await x` instead of an attribute/method-y thing.