sink icon indicating copy to clipboard operation
sink copied to clipboard

Minimal programming language for embedding small scripts in larger programs

Results 13 sink issues
Sort by recently updated
recently updated
newest added

``` var a = {} a[num.nan] ``` shouldn't throw

``` def foo end include 'foo.sink' ``` This is due to missing `st.names = null` here: https://github.com/velipso/sink/blob/master/src/sink.ts#L3456

This fails: ``` def test return 5 end for: range test say 'yo' end ``` Should say 'yo' 5 times, but instead errors with: > Cannot use non-variable in for...

This should work: ``` var a = {} list.push a, 1, 2, 3 list.unshift a, 4, 5, 6 say a # {4, 5, 6, 1, 2, 3} ```

I'd like to do something like this: ``` enum A, B, C var data = { [A]: 1, [B]: 2, [C]: 3 } ``` Maybe even: ``` enum user.NAME, user.AGE...

enhancement

Seems like this should work: ``` 1: 0 0 2: 00 Error: 2:1: Invalid call ``` ???

This should work: ``` var points = {{100, 50}, {20, 30}} for var {x, y}: points say "x: $x, y: $y" end ```

If the user forgets to `sink_scr_addpath`, then the error message is just "Failed to read file" with no activity (no calls to `fstype` or `fsread`). This is a bad user...

Hi Sean, just discovered yesterday your Sink language. From a first look it looks really interesting (and I looked at really many languages...). The issue is that I tried to...