Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't time-travel into the future #1

Open
kernelmethod opened this issue Dec 23, 2019 · 1 comment
Open

Can't time-travel into the future #1

kernelmethod opened this issue Dec 23, 2019 · 1 comment

Comments

@kernelmethod
Copy link

Steps to reproduce

test.js

var x = 1;
console.log(x@-1);
x = 2;

Running TIMESCRIPT:

$ node timescript.js test.ts
UnaryExpression {
  type: 'UnaryExpression',
  operator: '-',
  argument: Literal { type: 'Literal', value: 1, raw: '1' },
  prefix: true }
/home/will/Desktop/test/TIMESCRIPT/timescript.js:66
    throw Error(
    ^

Error: UnaryExpression is an unimplemented langugage feature. Don't be surprised, most of the language is unimplemented.
    at compile (/home/will/Desktop/test/TIMESCRIPT/timescript.js:66:11)
    at compile (/home/will/Desktop/test/TIMESCRIPT/timescript.js:37:65)
    at Array.map (<anonymous>)
    at compile (/home/will/Desktop/test/TIMESCRIPT/timescript.js:45:58)
    at compile (/home/will/Desktop/test/TIMESCRIPT/timescript.js:42:16)
    at Array.map (<anonymous>)
    at compile (/home/will/Desktop/test/TIMESCRIPT/timescript.js:10:26)
    at main (/home/will/Desktop/test/TIMESCRIPT/timescript.js:78:27)
    at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3)

tardis

@apccurtiss
Copy link
Owner

The language currently does not support Futures. Those are functional programming tools and functional programming requires immutability, which we can all degree is stupid temporalist garbage. The spec committee may one day agree to it if lobbied hard enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants