OOP-like dot notation in Julia

For function discovery, a better autocomplete would indeed be useful!
Does it have to be object.<tab>? Maybe, but also consider alternatives that mesh better with the existing Julia syntax – eg, ?(object<tab> or similar.
Anyway, autocomplete is not currently limited by the lack of syntax, and could definitely be improved.

Many Julia functions that one commonly wants to pipe take either a function or some model object as the first argument, while the natural “object” goes as the second/last argument.
DataPipes.jl (discussion) is specifically designed for zero-boilerplate piping in this very common scenario, while still supporting functions that take the “object” as the first argument.
Not sure if using . for piping is much more convenient to warrant such major changes…

1 Like