I would like to announce a tiny package called InlineExports.jl. It provides a single macro,
@export, which allows you to export variables, functions and types at their points of definition. This is best illustrated by an example:
module M using InlineExports @export function f(x) return x^2 end @export const answer = 42 @export my_string = "Banana" end
Any comments or feedback is much appreciated!