Interfaces are a great way of grouping methods, but many PLs struggle with method name overlaps in unrelated ifaces.
miniblog.
Related Posts
It's funny how languages can offer multiple forms of syntax, but formatters standardise to a single form.
E.g. single vs double quotes in JS, optional semicolons in JS, different ways of grouping imports in Rust.
Should new languages be more syntactically opinionated?
I've been experimenting with grouping top-level syntax items in difftastic. It works surprisingly well so far.
Here's a CSS example (old, then new). Although the old screenshot is a smaller diff, the second diff seems much more readable overall.
It's really interesting to write code in Smalltalk, with no files.There's no inherent ordering and lots of flexibility wrt grouping of code.



