ballercat / walt

:zap: Walt is a JavaScript-like syntax for WebAssembly text format :zap:

Home Page:https://ballercat.github.io/walt/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

export as

poeticAndroid opened this issue · comments

Feature Request

Overview

would be nice to export functions (and other stuff?) under a different name, not limited to valid javascript identifiers..

Impact

Some implementations might require modules to export functions under specific names, which might be a javascript keyword or contain special characters.

Details

Maybe something like this?

export as "break" function exit():void { ... };
// or
export function exit():void { ... } as "break";
// or
function exit():void { ... }
export exit as "break";