ballercat / walt

:zap: Walt is a JavaScript-like syntax for WebAssembly text format :zap:
https://ballercat.github.io/walt/
MIT License
4.64k stars 122 forks source link

export as #134

Open poeticAndroid opened 6 years ago

poeticAndroid commented 6 years ago

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";