Re:SQL is syntactic sugar for relational algebra
by duped on Saturday March 23, 2024 @12:13PM
(#39800934)
Imagine if methods on your C++ classes had to be called like method(object) instead of object.method(). While it's a meaningless syntactic difference, the latter makes autocomplete in an IDE possible.
[ Parent
| on HN ]
Re:SQL is syntactic sugar for relational algebra
by rileymat2 on Saturday March 23, 2024 @12:28PM
(#39801058)
Sure, in that very small example, if you don't care internal about visibility.
But method(object1, object2, object3, object4) is different than object.method().
Re:SQL is syntactic sugar for relational algebra
by duped on Sunday March 24, 2024 @03:07AM
(#39805564)
I don't think visibility is important, since you want autocomplete to work both in public and private methods. It would be a crappy IDE experience if you couldn't autocomplete on private methods within other private methods.
And sure, multimethods are too complex for naive autocompletion. But it's useful for people to have tooling that can say "given an input tell me what outputs are possible" because that's how we write code.