// math.js - Named exports
export const PI = 3.14159;
export const E = 2.71828;
export function add(a, b) {
return a + b;
# Using the module
module "api_service" {
source = "./modules/ecs_service"
service_name = "api"
# Simple mixin
module Loggable
def log(message)
puts "[#{Time.now}] #{self.class.name}: #{message}"
end
end
mod utils {
pub fn helper() {
println!("Helper function");
}
fn private_fn() {}