ExportUtils
is a lightweight Julia package that provides a macro to simplify variable and function exporting. The @export_const
macro helps you export and define constants in a concise and readable manner.
module TestModule
using ExportUtils
@export_const x = 10
@export_const y = "hello"
@export_const z = 3.14
@export_const add = function (a, b)
return a + b
end
end
Idea for package comes from a discussion on the Julia Zulip chat. Source Message.