You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thought it would be cool if comments were passed through for documentation and usage such as enabling Flow type annotations, perhaps as an extension or plugin. Well, ideally I'd suggest support via a version line keyword flow. Could version keyword be enabled via extension!?
Flow/TS style arguments with default values and (optional) entry/exit types
constfn=({ name ='John Doe',age? : number}: Data): Data=>({
name,
age,});
fn: ({name: 'John Doe', age}) -> ... could become fn: ({name: 'John Doe', age? <number> }) <Data> ->
We could start with limited flow support for function args and variable declarations
Supporting types is a long term plan. That may be after WebAssembly specification is more complete, so that we can directly compile FutureScript to WebAssembly.
Thought it would be cool if comments were passed through for documentation and usage such as enabling Flow type annotations, perhaps as an extension or plugin. Well, ideally I'd suggest support via a version line keyword
flow
. Could version keyword be enabled via extension!?Flow/TS style arguments with default values and (optional) entry/exit types
fn: ({name: 'John Doe', age}) -> ...
could becomefn: ({name: 'John Doe', age? <number> }) <Data> ->
We could start with limited flow support for function args and variable declarations
flow basics
c: "hello" <string>
What do you think?
The text was updated successfully, but these errors were encountered: